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

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!

Related

Error command firebase deploy --only remoteconfig

HTTP Error: 500, [DATABASE_ERROR]: Attempt to read the ConditionOrderEntity of this template resulted in too many rows (2) for project [0000000000]
Error Context: {
"body": {
"error": {
"code": 500,
"message": "[DATABASE_ERROR]: Attempt to read the ConditionOrderEntity of this template resulted in too many rows (2) for project [0000000000]",
"status": "INTERNAL"
}
},
"response": {
"statusCode": 500
}
}

Sending a request to /adCreativesV2 entity doesn't return all the fields

We are in the process of designing a custom build report for our client and have recently stumbled upon a behavior which we could not puzzle. Basically, we are not getting returned the following fields
ad_creative_name
ad_creative_text
ad_creative_title
when sending a GET request as follows:
https://api.linkedin.com/v2/adCreativesV2/136236994?projection=(*,reference~(*))
We're getting a 200 OK response as per below:
"variables": {
"data": {
"com.linkedin.ads.SponsoredInMailCreativeVariables": {
"content": "urn:li:adInMailContent:5139314"
}
}
},
"test": false,
"servingStatuses": [
"RUNNABLE"
],
"type": "SPONSORED_INMAILS",
"version": {
"versionTag": "6"
},
"reference": "urn:li:adInMailContent:5139314",
"changeAuditStamps": {
"lastModified": {
"time": 1624098658000
},
"created": {
"time": 1624035613000
}
},
"review": {
"reviewStatus": "APPROVED"
},
"campaign": "urn:li:sponsoredCampaign:179783044",
"reference!": {
"message": "Unsupported URN domain: li:adInMailContent",
"status": 501
},
"id": 136236994,
"status": "ACTIVE"
}
From the response, you may also notice that we are also getting this warning
"message": "Unsupported URN domain: li:adInMailContent",
"status": 501
We've tried different API requests variations, including specifying different creatives that are active, but to no avail. Also, we were not able to find any info regarding the error above, so we are uncertain what might be causing it.
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!

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"
}
}

Error thrown during batchUpdate for createImageRequest

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"
}
]
}

Resources