› Forums › Post Pay Counter PRO › Support › code 401 message Request is missing required authentication
We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.
- This topic has 15 replies, 1 voice, and was last updated 2 years ago by Stefano.
-
AuthorPosts
-
September 11, 2022 at 7:25 am #198656DonGuest
My counter is no longer tallying and I have hundreds of members freaking out. Can you tell me how to resolve this issue. Here is the error code: Error: Error: 401: { “error”: { “code”: 401, “message”: “Request is missing required authentication credential. 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”: “Login Required.”, “domain”: “global”, “reason”: “required”, “location”: “Authorization”, “locationType”: “header” } ], “status”: “UNAUTHENTICATED”, “details”: [ { “@type”: “type.googleapis.com/google.rpc.ErrorInfo”, “reason”: “CREDENTIALS_MISSING”, “domain”: “googleapis.com”, “metadata”: { “method”: “analytics.gaapi.v3.AnalyticsManagementProfiles.List”, “service”: “analytics.googleapis.com” } } ] } }
September 11, 2022 at 8:03 am #198985StefanoKeymasterHi Don,
we’ve had to update our GA login flow to comply with changes from Google, but this seems to have broken existing logins on some websites. You will need to authorize the plugin again, but to do so you first need to revoke the current authorization. HOWEVER, doing so will currently also delete all your GA data, so I will work to release an update that decouples these two actions so that you can re-login without losing your data. Please be patient 1-2 days while I get this done, it will ship as a regular update and I will also notify you here 🙂
Sorry for the hiccup!A nice day,
StefanoSeptember 11, 2022 at 3:40 pm #199086StefanoKeymasterversion 1.8.9.2 addresses the issue :0
September 12, 2022 at 6:05 am #199243DonGuestThanks for the update.
October 22, 2022 at 9:23 am #209368LesyGuestI have 2 sites with almost identical configuration and on one my GA keeps getting disconnected for the last few weeks. Basically i have to diconnect and reconnect every day. It syncs data and then the next day 401 again.
Strangely, on my other site it’s working just fine.
On a perhaps related side: I also cannot save counting settings options on both sites anymore with error: “Error: could not update settings”. Other boxes under options save fine though.
October 24, 2022 at 9:12 am #209675StefanoKeymasterHi Lesy,
can you post your Error log, found in the related box in the Options page?A nice day,
StefanoOctober 24, 2022 at 9:49 am #209683LesyGuest24. oktobra, 2022 08:00:03
An error was thrown with code “ga_get_data_error”, message “Error: 401: {
“error”: {
“code”: 401,
“message”: “Request is missing required authentication credential. 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”: “Login Required.”,
“domain”: “global”,
“reason”: “required”,
“location”: “Authorization”,
“locationType”: “header”
}
],
“status”: “UNAUTHENTICATED”,
“details”: [
{
“@type”: “type.googleapis.com/google.rpc.ErrorInfo”,
“reason”: “CREDENTIALS_MISSING”,
“domain”: “googleapis.com”,
“metadata”: {
“method”: “analytics.gaapi.v3.AnalyticsDataGa.Get”,
“service”: “analytics.googleapis.com”
}
}
]
}
}
” and debug data “array (
‘profile’ => ‘199644811’,
‘start_time’ => ‘2022-10-23’,
‘end_time’ => ‘2022-10-23’,
‘metrics’ =>
array (
0 => ‘ga:pageviews’,
),
‘optional_params’ =>
array (
‘max-results’ => 9999,
‘dimensions’ => ‘ga:pagePath’,
‘filters’ => ‘ga:pagePath!@/404.html;ga:pagePath!@/search/’,
‘start-index’ => 1,
),
)”.AND A LOT OF THESE, BUT THESE ARE UNRELATED
24. oktobra, 2022 08:42:33
An error was thrown with code “no_author_with_total_payment”, message “No posts reach the threshold. Check your settings at Options > Counting Settings > Total Payment > Pay only when the total payment threshold is reached.” and debug data “false”.October 24, 2022 at 2:48 pm #209748StefanoKeymasterThanks! Is your site setup to use GA4? PPC is not yet compatible with that, so that might be why it doesn’t work.
October 24, 2022 at 2:58 pm #209755LesyGuestI have both UA and GA4. I linked ppc to UA. I’m certain it’s linked to UA, because GA4 properties don’t even show up in PPC options and if I inspect the slected option in dropdown I can see the value matches my UA property view ID.
Now that I’m looking at it more, the only thing that stands out (copered to the other site, where everything is almost identical), is that property view name is using capital letters (MojPrihranek.si), while on the other site it’s writtent just as a www url. Maybe the caps are messing something up? I’ll try renaming it.
October 24, 2022 at 3:07 pm #209760StefanoKeymasterI would be really surprised if the caps were to mess it up, but hey it doesn’t hurt to try. Also because I honestly don’t have any other good piece of advice – I can’t think of anything else other than a possible conflict with another plugin. Do the two sites have the same plugins installed as well?
October 24, 2022 at 3:47 pm #209773LesyGuestYea, the non working one has all the same plugins and themes. The working one has a few more. They both have about 100 plugins so pinpointing a plugin conflict is gonna be a mess X_X. For now I’ll wait till tomorrow’s analytics update to see if renaming helped. Then I can make a staging copy and start disabling :/
October 24, 2022 at 6:38 pm #209848StefanoKeymasterOk, let me know if I can be of further help :/
October 26, 2022 at 10:06 am #210522LesyGuestI managed to figure it out. It’s not a plugin conflict. Some parts of the authorization process didn’t fully connect. Every time I disconnected and reconnected the authorization (which I had to do daily, as it would get deauthorized), it just asked me to pick my google account and copy the confirmation id. But it didn’t ask me to confirm all the data sharing.
Then I switched to another UA property, saved, and back, and this time it did also ask if I wish to share my data with ppc. Now it remembers the authorization.
Weird behaviour. I guess it’s fully on googles side.
October 26, 2022 at 10:20 am #210534StefanoKeymasterVery weird, but glad you sorted it out. The new updates to GA4 have all been a shit show, and now these weird bugs… I don’t know where they are going :/ but affecting us all anyway.
November 6, 2022 at 10:36 am #215098LesyGuestUpdate on unauthenticated GA issue. After this fix my original site got disconnected. It turns out you cannot use the same g user account to access 2 different analytics for 2 different sites (even though they were in the same GA property). As if it disconnects on connecting a new site.
I had to give anayltics access to a second gmail account and connect a different user with each site.
November 7, 2022 at 9:27 am #215527StefanoKeymasterInteresting, thanks for reporting back! 🙂
-
AuthorPosts
- The topic ‘code 401 message Request is missing required authentication’ is closed to new replies.