Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 API Call #10

Open
pBrambi opened this issue Dec 18, 2024 · 0 comments
Open

403 API Call #10

pBrambi opened this issue Dec 18, 2024 · 0 comments

Comments

@pBrambi
Copy link

pBrambi commented Dec 18, 2024

Hello,

I am getting the error after updating to the separate Client / Updater SDK.

Screenshot 2024-12-18 at 15 55 16

I have correctly connected GitHub and Wordpress SVN. I have even recreated these connections so they are fresh and not revoked.
The publishing of a release here on GitHub with a tag properly makes the "push" to Appsero, but the update plugin does not work at all. It was working fine for 2 years or so when the updated was inside the Client SDK.

SDKs are at the latest versions, including Wordpress, using PHP 8.3.
My server is not blocking the connection (checked that).

This is in my plugin code:

// Initiliaze plugin analytics SDK

require __DIR__ . '/vendor/autoload.php';

function appsero_init_tracker_webrun_ized()
{
    if (! class_exists('Appsero\Client')) {
        require_once __DIR__ . '/appsero/src/Client.php';
    }

    if (! class_exists('Appsero\Updater')) {
        require __DIR__ . '/updater/src/Updater.php';
    }


    $client = new Appsero\Client('KEY_HERE', 'Webrun', __FILE__);


    $insights = $client->insights();
    // Active automatic updater

    // Active insights
    $client->insights()
    ->hide_notice()
       ->add_plugin_data()
       ->init();

    // Active automatic updater
    Appsero\Updater::init($client);

}
appsero_init_tracker_webrun_ized();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant