Error thrown during batchUpdate for createImageRequest - google-slides

While using Google Slides API request for batchUpdate request (ref: https://developers.google.com/slides/reference/rest/v1/presentations/request#createimagerequest), even when all images are valid, the library still throws this error, and it has been quite difficult to debug what exactly went wrong. I ensured image to be valid and matched requirements through Google API specs.
If there are better ways to catch specific details, please mention.
Error: Invalid requests[224].updatePageProperties: There was a problem retrieving the specified image.
at Request.DefaultTransporter.wrapCallback_ [as _callback] (/path/to/project/node_modules/google-auth-library/lib/transporters.js:85:15)
at Request.init.self.callback (/path/to/project/node_modules/request/request.js:186:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.readResponseBody (/path/to/project/node_modules/request/request.js:1081:10)
at Request.EventEmitter.emit (events.js:95:17)
at IncomingMessage.Request.onRequestResponse (/path/to/project/node_modules/request/request.js:1001:12)
at IncomingMessage.g (events.js:180:16)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
And error object looks like:
{
"cause": {
"code": 400,
"errors": [
{
"message": "Invalid requests[224].updatePageProperties: There was a problem retrieving the specified image.",
"domain": "global",
"reason": "badRequest"
}
]
},
"isOperational": true,
"code": 400,
"errors": [
{
"message": "Invalid requests[224].updatePageProperties: There was a problem retrieving the specified image.",
"domain": "global",
"reason": "badRequest"
}
]
}

Related

LinkediIn API V2 - 500 intermittent error when fetching organizational entities data using projections

I'm trying to retrieve details for the companies where a user is an administrator using the request and projections bellow.
Sometimes it fails with a 500 error code and returns an unknown reason message. If I try again after a long time, it usually works.
Sample request
GET "https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&projection=(elements*(*,organizationalTarget~(localizedName,vanityName,logoV2(original~:playableStreams),id)))"
Sample response
{
"elements": [{
"role": "ADMINISTRATOR",
"roleAssignee": "urn:li:person:dV",
"state": "REVOKED",
"organizationalTarget!": {
"message": "URN Resolution failed for unknown reasons.: com.linkedin.r2.RemoteInvocationException: GatewayException{_serviceErrorCode=null}",
"status": 500
},
"organizationalTarget": "urn:li:organization:1"
}, {
"role": "ADMINISTRATOR",
"roleAssignee": "urn:li:person:dV",
"state": "APPROVED",
"organizationalTarget!": {
"message": "URN Resolution failed for unknown reasons.: com.linkedin.r2.RemoteInvocationException: GatewayException{_serviceErrorCode=null}",
"status": 500
},
"organizationalTarget": "urn:li:organization:9"
}]
}
Why is this error happening? Is there any workaround to get this information without falling into the same error?
Thanks!

Empty referrer in YouTube API requests

I'm trying to retrieve a channel's video list from the YouTube API. Actually, this functionality is already implemented, but suddenly stopped working.
Here's what I have:
A GET request to the search endpoint: https://www.googleapis.com/youtube/v3/search;
Some query params:
part=snippet,id
channelId=UCSJ4gkVC6NrvII8umztf0Ow (just an example)
maxResults=5
order=date
key=[MY_API_KEY]
I guess everything's alright, but for some reason I get this response:
{
"error": {
"code": 403,
"message": "Requests from referer <empty> are blocked.",
"errors": [
{
"message": "Requests from referer <empty> are blocked.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}
I really don't know what's wrong, and every request returns the same error.
Can someone help me please?
Thanks for the attention!

Why I got the parseerror error when creating an event

With the Google Calendar API I have the following error when creating an event. "code": 400, "message": "Parse Error"
I'm using PowerBuilder 2017 and Rest Object
Header : "content-type:application/json; charset=utf-8"
Url : POST
https://www.googleapis.com/calendar/v3/calendars/3uhk2ncgaugdu6lmegfkb7rnrk#group.calendar.google.com/events
Data :
{"summary":"[CARINE VĂ©ronique] A","description":"","visibility":"public","location":"","start":{"dateTime":"2020-07-03T15:30:00+02:00","timeZone":"America/Los_Angeles"},"end":{"dateTime":"2020-07-03T16:00:00+02:00","timeZone":"America/Los_Angeles"}}
Response : 400
{
"error": {
"errors": [
{
"domain": "global",
"reason": "parseError",
"message": "Parse Error"
}
],
"code": 400,
"message": "Parse Error"
}
}
Have any suggestions?
Regards
Thierry
Regard

Google Identity Toolkit failing to sign-up new user: Error code: Internal error encountered

New users trying to setup logins that aren't #google.com are hitting issues using Google Identity Toolkit. This has been working fine for a long time so not sure what's up. Looks like this:
In the console seeing a 500 error coming back when calling this URL:
https://www.googleapis.com/identitytoolkit/v3/relyingparty/setAccountInfo?key=<key>
POST data:
{"email":"nlckeweo#sharklasers.com","displayName":"test","password":"password"}
API response:
{
"error": {
"code": 500,
"message": "Internal error encountered.",
"errors": [
{
"message": "Internal error encountered.",
"domain": "global",
"reason": "backendError"
}
],
"status": "INTERNAL"
}
}

get cursor from MQL query, Freebase

I am trying to get the 'cursor' value returned in a MQL query by following this example. Though my attempt produces the following error:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "cursor is invalid.",
"locationType": "other",
"location": "parameters.cursor"
}
],
"code": 400,
"message": "cursor is invalid."
}
}
In the new API, the starting value for the cursor parameter is null, not the value true like before. Try this
Docs here
http://wiki.freebase.com/wiki/MQL_Read_Service

Resources