Facebook Insights API - 获取子代码为 99 的错误代码 1

Facebook Insights API - getting error code 1 with subcode 99

我们正在通过 Facebook 营销 API 检索洞察数据。我们为此使用 Python "facebookads" 模块。我过去一直在为我们所有的账户下载历史数据,这些数据运行得非常好。自 2 周左右以来,我收到此错误:

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

任何人都有想法,为什么我会收到此错误?这个非常相同的请求已经开始工作了。我已经多次重试相同的请求。

Facebook 开发团队的 Shireesh Asthana 提到 here 请求的数据太多,必须使用异步请求。 示例可以在这里找到: