我遇到了错误:“抱歉,报告无法成功加载。请在获取数据之前检查您的工作状态是否已完成而不是失败或正在运行。”
有些日子没事,没有错误。 但是在其他日子,我得到了错误。
在Facebook / Google搜索上未发现有关此错误的任何信息。 那么,有什么问题呢?期待您的反馈。 谢谢!
我的python代码是:
async_job = my_account.get_insights(params=params, async=True)
async_job.remote_read()
while async_job[AdReportRun.Field.async_percent_completion] < 100:
time.sleep(1)
async_job.remote_read()
time.sleep(1)
report = async_job.get_result()
我得到的答复是:
Message: Call was not successful
Method: GET
Path: https://graph.facebook.com/v3.0/xxxxxxxxxxxxxx/insights
Params: {}
Status: 400
Response:
{
"error": {
"code": 2601,
"is_transient": true,
"error_subcode": 1815107,
"error_user_msg": "Sorry, the report cannot be loaded successfully. Please check if your job status is completed instead of failed or running before fetching the data.",
"error_user_title": "Loading Async Ads Report Failed",
"message": "Error accessing adreport job.",
"type": "OAuthException",
"fbtrace_id": "xxxxxxxx"
}
}