Google AUTH API Returning 500 Error - api

This endpoint call has always worked:
https://www.googleapis.com/oauth2/v2/userinfo
Nothing changed. But today around 12:30ET it gives us the following response:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
Google Services admins said they could not answer and to post here.

I saw a similar spike in 500s on login requests around the same time. It's possible it's just a random hiccup in their services. https://www.google.com/appsstatus#hl=en&v=issue&sid=22&iid=63152ed689097a6944dcdf3f15a12692 reports there was some temporary downtime logging into Hangouts for some users at around that same window -- might be the same thing.

Related

"500 Internal error" with the Youtube Content ID API

I'm actually trying to retrieves the policies of my Youtube assets id (following this documentation :
AssetMatchPolicy: get)
There is my HTTP Request : https://i.stack.imgur.com/LL4iU.png
And there is the 500 error i got when i launch this request :
{
"error": {
"code": 500,
"message": "An internal error has occurred.",
"errors": [
{
"message": "An internal error has occurred.",
"domain": "youtubePartner",
"reason": "internalError"
}
]
}
}
I launch it again multiple time at different moments of the day in case it was just due to a temporary server problem, but always the same error...
If anyone can help me understand what can cause this error and how to fix this it would be incredible ! Thanks in advance to everyone !

Google Sheets - "The caller does not have permission" exception

I am using v4 and google/apiclient:2.9.1 (php).
I successfully access the spreadsheet through oauth2. It is meaning I can read and edit data. But sometimes I get 403 http code with a body
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"errors": [
{
"message": "The caller does not have permission",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}
for no apparent reason. I don't change the permissions of spreadsheet, don't revoke permissions, etc. Re-access request is successful and the data becomes available again through API.
Why it happens? How do I get rid of the need to re-request access permissions?
This is repeated on different accounts and spreadsheets.

How to move events from one Calendare to another (Different gmail)?

I am using calendar API to move the events from one Calendar to another totaly different gmail account and I am getting error.
404
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
When I am moving to secondary calendar on the same email no error is coming.
I have already gonethrough the doc which states I must have write permission for both calendar here how can I give permission using API.
Any example will be greatly appereciated.
Thanks,
Amit Singh

google plus auth returning error 401

I am using Google plus auth to log in in web application. It is working properly, but for some time its return error 401. Error JSON is following. I view link Error Description but I did not understand what should I do.
{
"error":
{ "errors":
[
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
}
As the error page indicated - your access token has likely expired. It sounds like you got an access token once, and are continuing to use it.
Access tokens expire after an hour. After that time, you either need to go through the auth flow again, or use the refresh token to get a new one.

google plus api 403

For some reason I’m not getting the results that I expected using the HTTP POST explorer. I’m getting 403 Forbidden for all userIds that I try.
I used this article to be sure I'm using the correct userId (I even used the userID from the article to see if it was just the ones I tested).
This is where I'm testing: https://developers.google.com/apis-explorer/#p/plusDomains/v1/plusDomains.activities.list
Could there be something wrong with the API?
Here's the full response:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Forbidden"
}
],
"code": 403,
"message": "Forbidden"
}
}
For the Plus Domain API, you need to make sure the user you're authenticating as is part of the domain you're making queries for. See https://developers.google.com/+/domains/authentication/ for more details.