I am building out API calls to the Google calendar.
I am using the social login feature.
I am having difficulties now with some of my API calls being returned with error saying that they’re not authenticated or that identification is missing from the header.
So far I am able to login, call all of my calendar events, Paul profile information, and poll information related to my calendar colors. However, when I try to create update or delete an event I receive an error that says I am not authenticated. This is that error:
{
"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"
}
}
It’s just weird because half of the calls seem to get authenticated and the other half do not. This is very reliable behavior and I have seen nothing else. And my first thought would be well Jared, didn’t you check to make sure that they work in the builder. Yes I did. When I do these calls from within the API builder itself I first authenticate and then am able to create events, read Events, update and delete Events with no issue.
It’s only in the preview and live versions of the app that I can’t do these three actions. Create. Update/patch. Delete
Shots of the api calls for reference
The main setup which works fine
The scope being requested
https://www.googleapis.com/auth/calendar profile email
A read (GET) call which works fine
The update call which works fine in the builder but not any live version of the app even after authenticating.













nice