Facebook Insights API - getting error code 1 with subcode 99 - facebook

We are retrieving Insights data via the Facebook Marketing API. We are using the Python "facebookads" module for this. I was downloading historic data in the past for all of our accounts which was working perfectly fine. Since 2 weeks or so I am getting this error:
2018-06-01 16:01:57 - (DEBUG) - urllib3.connectionpool - https://graph.facebook.com:443 "GET /v2.11/act_nnnn/insights?access_token=&appsecret_proof=&time_range=%7B%22since%22%3A%222018-05-08%22%2C%22until%22%3A%222018-05-08%22%7D&level=ad&breakdowns=%5B%22impression_device%22%5D&filtering=%5B%7B%22field%22%3A%22spend%22%2C%22operator%22%3A%22GREATER_THAN%22%2C%22value%22%3A%220%22%7D%5D&limit=5000&fields=account_id%2Ccampaign_id%2Ccampaign_name%2Cadset_id%2Cadset_name%2Cad_id%2Cad_name%2Cimpressions%2Cclicks%2Creach%2Cspend%2Caccount_currency%2Cactions%2Caction_values%2Ctotal_actions%2Ctotal_action_value HTTP/1.1" 500 77
2018-06-01 16:01:57 - (DEBUG) - FacebookAdsDownloader - An exception occurred:
Message: Call was not successful
Method: GET
Path: https://graph.facebook.com/v2.11/act_nnnn/insights
Params: {'time_range': '{"since":"2018-05-08","until":"2018-05-08"}', 'level': 'ad', 'breakdowns': '["impression_device"]', 'filtering': '[{"field":"spend","operator":"GREATER_THAN","value":"0"}]', 'limit': 5000, 'fields': 'account_id,campaign_id,campaign_name,adset_id,adset_name,ad_id,ad_name,impressions,clicks,reach,spend,account_currency,actions,action_values,total_actions,total_action_value'}
Status: 500
Response:
{
"error": {
"code": 1,
"message": "An unknown error occurred",
"error_subcode": 99
}
}
Anyone has an idea, why I get this error? This very same request was working already. I have retried the same request over and over.

Shireesh Asthana from Facebook Developer team mentions here that too much data is requested and asynchronous requests have to be used.
Example can be found here: retrieve async ads insights results from FB ads API with pagination

Related

Write access to project denied when trying to deploy to Firebase hosting

I have been working on a project for a couple of months and when I tried to deploy updates today I was met with the following error: HTTP Error: 403, Write access to project was denied
This is not the first time I have called firebase deploy for this project but I haven't had any issues before.
The relevant section of the log generated with firebase deploy --debug:
[2023-02-14T09:05:36.343Z] >>> [apiv2][query] POST https://cloudfunctions.googleapis.com/v2/projects/galimbang-192cf/locations/us-central1/functions:generateUploadUrl [none]
[2023-02-14T09:05:37.947Z] <<< [apiv2][status] POST https://cloudfunctions.googleapis.com/v2/projects/galimbang-192cf/locations/us-central1/functions:generateUploadUrl 403
[2023-02-14T09:05:37.947Z] <<< [apiv2][body] POST https://cloudfunctions.googleapis.com/v2/projects/galimbang-192cf/locations/us-central1/functions:generateUploadUrl {"error":{"code":403,"message":"Write access to project 'galimbang-192cf' was denied","status":"PERMISSION_DENIED"}}
There was an issue deploying your functions. Verify that your project has a Google App Engine instance setup at https://console.cloud.google.com/appengine and try again. If this issue persists, please contact support.
⚠ functions: Upload Error: HTTP Error: 403, Write access to project 'galimbang-192cf' was denied
Error: HTTP Error: 403, Write access to project 'galimbang-192cf' was denied
[2023-02-14T09:05:37.950Z] Error Context: {
"body": {
"error": {
"code": 403,
"message": "Write access to project 'galimbang-192cf' was denied",
"status": "PERMISSION_DENIED"
}
},
"response": {
"statusCode": 403
}
}
I should also note that this project uses the Next.JS firebase integration.

How to get incident details using BMC Remedy REST API Authentication?

I have used to get authenticate to BMC Remedy to get incident via below url:
https:<host>:<port>/api/jwt/login
with username and password as a parameter and content-type as url-form encoded... But I got an error
[
{
"messageType": "ERROR",
"messageNumber": 8790,
"messageText": "Unknown system error",
"appendedText": "HTTP 400 Bad Request"
}
]
Currently i am working on developer sandbox instance.. After I created the sandbox .I got the details to my mail like
Product:Innovation Studio
Host: developerxxx.innovate.bmc.com
AR Java API Port: 46200
Innovation Studio URL: https://developerxxxx.innovate.bmc.com/com.bmc.arsys.rx.innovationstudio/index.html
Mid Tier URL: https://developerxxxx.innovate.bmc.com:8443/arsys
Field ID Range: 10445xx1:10446xx0
I need to get incident details using BMC Remedy REST API Authentication.

O365 Attachment API got "Unable to cast object of type" error

Any resolution/mitigation on this?
The issue can be reproduced on API explorer (https://graphexplorer2.azurewebsites.net) with following REST API Repro steps:
Logon API Explorer with your tenant, https://graphexplorer2.azurewebsites.net
Get the group conversation attachments with following API In my case:
You will get following error:
Request duration: 6086 ms. CollapseExpandRawJSON Error: 500 - Internal Server Error See Response Headers for details. { "error": { "code": "ErrorInternalServerError", "message": "Unable to cast object of type 'Microsoft.Exchange.Services.OData.Model.AttachmentSchema' to type 'Microsoft.Exchange.Services.OData.Web.IRequestBuilderForEntitySet`2[Microsoft.Exchange.Services.OData.Model.Post,Microsoft.Exchange.Services.OData.Model.Attachment]'.", "innerError": { "request-id": "89efeca6-ba17-478b-aa8e-f3bf6ec32cd0", "date": "2016-01-08T09:56:39" } } }
Thanks,
Raymond
This was a bug in the service. The fix for it is being rolled out and you should no longer see the error.

Youtube analytics API Playlists filter returns Unknown error occurred on the server

When retrieving my playlists statistics using the Youtube Analytics API, quite often the API returns error 500
{
"error": {
"errors": [
{
"domain": "global",
"reason": "internalError",
"message": "Unknown error occurred on the server."
}
],
"code": 500,
"message": "Unknown error occurred on the server."
}
}
The request that I make is authorized, by turning on the Authorize requests using OAuth 2.0 in the api explorer
Here is a link to the API explorer, which is taken from the official documentation
Any ideas? Thank you!

Facebook Graph API Explorer won't delete a request

I'm trying to delete a request via Graph API Explorer. Request is generated by my mobile application. Of course, I use an access token from this application. And I've got the following error:
{
"error": {
"message": "(#2) Failed to delete any app request",
"type": "OAuthException",
"code": 2
}
}
The request exists, I can GET it.
The issue was that I tried to delete a request that didn't belong to me.