Authorisation error 624
-
I have problems on multiple site, the plugins keeps disconnecting. The error shown is this:
Aantal: 26 Foutcode: 600 Fout reden: None Fout details: 624
This page (https://deconf.com/error-codes-in-analytics-insights-for-wp/) suggests:
“This error indicates that not all the requirements are met in order to properly retrieve a report. In this case, you should clear the authorization, authorize it again and check the configuration. Checking your PHP error log could also help.”I can authorize it again and it works, but the next day I have to authorize it again… There is nothing in the PHP error log.
Is there something else I can try?
-
Hi,
Are you authorizing more than 20-25 websites using the same Google account?
- This reply was modified 1 year, 5 months ago by Alin Marcu.
I’m using this plugin on 12 websites with the same Google account, that should be oke shouldn’t it?
It should be okay. Can you try to revoke them all (Clear Authorization) and re-authorize again? First clear authorization on each one and then authorize each one. Please note that tracking will stop on that timeframe since you manually clear the authorization.
If possible, try that and check the first authorized site after one hour and a half and see if the authorization is kept.
Another way would be to share Google Analytics of one site to a different Google account and to authorize the site with this second Google account. Afterwards check if the authorization issue persists on this site.
- This reply was modified 1 year, 5 months ago by Alin Marcu.
Oke, did this, will check later!
Oke, after 4 days this is the result:
Good: 3 websites are still getting results
Error 624: 5 websites with this error
Error 401: 3 websites with this error and these details:Array ( [0] => Array ( [message] => Invalid Credentials [domain] => global [reason] => authError [location] => Authorization [locationType] => header ) )
Error: none. And 1 website with “Error code: none” and no details…
All the websites where getting results after I authorized them and nothing changed with credentials or whats however
Any ideas…?
Hi and thanks for the feedback.
The two errors are related, meaning that 401 is always follow by 624, so the cause is the same.
It seems like something is interfering with the normal token exchange.
Do you use a different analytics plugin on the same site (could be a plugin conflict)? Or do you have a more sophisticated setup like maybe using a proxy, or a special cache system that could interfere? Are there any errors listed on PHP error log?
The websites are single sites, there’s no WordPress multisite/network setup, right?
- This reply was modified 1 year, 5 months ago by Alin Marcu.
I use other analytics plugins on other websites which use the same Google account. Might that also be counting to that limit of 25?
I’m not using two analytics plugins on the same website nor are there any multisite websites. And no proxy or special cache system as far I’m aware of.
I use other analytics plugins on other websites which use the same Google account. Might that also be counting to that limit of 25?
Nope, because the refresh tokens are limited per plugin./account pairs.
The only thing that could generate issues is the other plugin generating requests in such a way that will reach the token limit or the error limit. But again those are, AFAIK, at property level, so if you don’t use the same properties on both plugins, that’s very improbable.
- This reply was modified 1 year, 5 months ago by Alin Marcu.
I’m getting error 624 also. When re-authorize the plugin, the dashboard widget displays stats once again. But then the authorization expires within a few hours.
Here’s what the Errors & Debug screen says:
Count: 9 Error Code: 600 Error Reason: None Error Details: 624
Checking the PHP debug log did not show any errors which seemed relevant.
@wenkunst in version 5.8.9 the error log is a lot more detailed, when you have time please update and will go from there. There should be a stacktrace that will help understanding the exact source of the error.
I’ll have a look at the more detailed error logs, thanks for the tip!
I’m back with some new results:
I’ve connected 9 websites with your plugin to a new google analytics account, therefor there should not be a problem with the amount. Also, those 9 website only use your plugin.
After one day I already get an error and they all give errors and are disconnected. Here is en error report:
Aantal: 2 Ajax Error Code: None API Error Code: 401 API Error Reason: Array ( [0] => Array ( [message] => Invalid Credentials [domain] => global [reason] => authError [location] => Authorization [locationType] => header ) ) API Error Details: Deconf\AIWP\Google\Service\Exception Object ( [message:protected] => { "error": { "code": 401, "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "errors": [ { "message": "Invalid Credentials", "domain": "global", "reason": "authError", "location": "Authorization", "locationType": "header" } ], "status": "UNAUTHENTICATED" } } [string:Exception:private] => [code:protected] => 401 [file:protected] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/vendor/google/apiclient/src/Http/REST.php [line:protected] => 137 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/vendor/google/apiclient/src/Http/REST.php [line] => 110 [function] => decodeHttpResponse [class] => Deconf\AIWP\Google\Http\REST [type] => :: ) [1] => Array ( [function] => doExecute [class] => Deconf\AIWP\Google\Http\REST [type] => :: ) [2] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/vendor/google/apiclient/src/Task/Runner.php [line] => 190 [function] => call_user_func_array ) [3] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/vendor/google/apiclient/src/Http/REST.php [line] => 69 [function] => run [class] => Deconf\AIWP\Google\Task\Runner [type] => -> ) [4] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/vendor/google/apiclient/src/Client.php [line] => 925 [function] => execute [class] => Deconf\AIWP\Google\Http\REST [type] => :: ) [5] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/vendor/google/apiclient/src/Service/Resource.php [line] => 241 [function] => execute [class] => Deconf\AIWP\Google\Client [type] => -> ) [6] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/vendor/google/apiclient-services/src/AnalyticsData/Resource/Properties.php [line] => 217 [function] => call [class] => Deconf\AIWP\Google\Service\Resource [type] => -> ) [7] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/gapi.php [line] => 1362 [function] => runReport [class] => Deconf\AIWP\Google\Service\AnalyticsData\Resource\Properties [type] => -> ) [8] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/gapi.php [line] => 1482 [function] => handle_corereports_ga4 [class] => AIWP_GAPI_Controller [type] => -> ) [9] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/tools/gapi.php [line] => 2255 [function] => get_areachart_data_ga4 [class] => AIWP_GAPI_Controller [type] => -> ) [10] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-content/plugins/analytics-insights/admin/ajax-actions.php [line] => 108 [function] => get [class] => AIWP_GAPI_Controller [type] => -> ) [11] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-includes/class-wp-hook.php [line] => 308 [function] => ajax_item_reports [class] => AIWP_Backend_Ajax [type] => -> ) [12] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-includes/class-wp-hook.php [line] => 332 [function] => apply_filters [class] => WP_Hook [type] => -> ) [13] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-includes/plugin.php [line] => 517 [function] => do_action [class] => WP_Hook [type] => -> ) [14] => Array ( [file] => /home/poustin/public_html/hetlevenssnoer.be/wp-admin/admin-ajax.php [line] => 188 [function] => do_action ) ) [previous:Exception:private] => [errors:protected] => Array ( [0] => Array ( [message] => Invalid Credentials [domain] => global [reason] => authError [location] => Authorization [locationType] => header ) ) )
I also have an error from an other website which is much longer. I don’t want to post it here because of the details, can I send it you private?
First thing first, thank you for the detailed feedback.
I’m starting to think that it could be related to quotauser id, a plugin issue. On next release we’ll give it a try and see how it goes without it.
I’ve also been testing the issue for some time and managed to bring a testing account to the state in which authorizing a third site will disable authorization on first one.
By the way, do you also have for those sites a local replication for testing? Is the only way I’ve managed to replicate the issue, using a third site which was a local one.
- This reply was modified 1 year, 4 months ago by Alin Marcu.
Hi,
It looks that one of the recent updates for some reasons didn’t go well.
Please try the following:
- Uninstall the plugin
- Re-install the plugin
- Settings will be lost on uninstall, please authorize and setup the plugin again
- After minimum one hour, check the dashboard and see if the charts are displaying without errors
@nemis, @bearlydoug, @mikeaustria, @shinshin2023, @danielvos you should try the above too.
Let me know if the issue persists and the new error codes if any.
I reinstalled the plugin. It has been about 20 hours since the installation and so far no errors have appeared! I will have to monitor it for a while, but if it continues to be error free, that would be great. Thank you very much for your support.
- This reply was modified 1 year, 4 months ago by shinshin2023.
- The topic ‘Authorisation error 624’ is closed to new replies.