OAuth2 suddenly not working with 401 Unauthorized - oauth2-playground

I have been developing some proof of concept project using the Google Fitness API v1 but suddenly, I cannot get access token anymore with a 401 response.
{
"error_description": "Unauthorized",
"error": "unauthorized_client"
}
What are some of the reason of this? I have checked that I am not reaching the quota yet.

Related

403 :Permission denied while hitting google developer reporting API

i am trying to hit https://playdeveloperreporting.googleapis.com/v1alpha1/apps/com.example/anrRateMetricSet.
It returns 403: permission denied
Here i am trying to capture the health metrics for my android app from Google console.
Reference:https://developers.google.com/play/developer/reporting/reference/rest/v1alpha1/vitals.anrrate/get?hl=en_GB
So i have Service account created on google console under "I AM and Admin"
I am trying to hit "https://playdeveloperreporting.googleapis.com/v1alpha1/apps/com.example/anrRateMetricSet"
By using access token created from key.JSON downloaded from linked Service account to the project.
But i am getting
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
Could n't understand what might be the issue. Since the Service account is linked to project.
Your help is highly appreciated . Thank you

oauth2 authorization to configure google drive connector in mule soft

exchange authorization code for tokens
gives { "error_description": "Unauthorized", "error": "unauthorized_client" } in google drive playground
and drive connectivity exception in mulesoft
OAuth authorization dance not yet performed for resourceOwnerId null

amazon api gateway returns 403

I am calling a serverless api(apigateway+lambda) from lambda from another aws account with axios, returns 403 http status with payload { message: "Forbidden" }. the get http call returns data when used in chrome
looking at the comments which say that the headers included "x-amzn-errortype: ForbiddenException", that happened for me when I had not deployed the api yet. After deploying the api, that error went away

Error Code 401 while using Server Side Huawei Mobile Service API for app level access token

From yesterday I am facing this error code 401 while accessing token from server using this API: https://oauth-login.cloud.huawei.com/oauth2/v3/token
Just for your information I am using Postman. Can anybody help me with this.
Error 401 usually means “unauthorized” or “request denied” because a request lacks valid credential. Although this error code is not listed in Account Kit server api, a developer can find it in other kit document - https://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/webapi-error-code-0000001050163432-V5. Basically, a developer need to make sure that their API key and/or token is valid.
while using huawei auth service if error code 401 returned it means access token becomes invalid and we need to obtain a new token. Token Validity is 60 mins.

Google API unauthenticated error

I am simply trying to cURL the google api rest resource:
curl -X GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=Miniac&maxResults=1&order=date&type=video&key={API_KEY}
the error I'm seeing is:
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use
This is usually an issue because the youtube API isn't enabled on the project where your API key lives, but in my case it is. What else am I missing?
I just needed to put quotations around the URL.