facebook / facebook-python-business-sdk

Python SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
1.27k stars 629 forks source link

Fix error when error_data is a string #573

Closed yakuban closed 3 years ago

yakuban commented 3 years ago

Fix exception when parsing FB error Original exception, which causes problem: { "message":"Invalid parameter", "type":"OAuthException", "code":100, "error_data":"\"null\"", "error_subcode":1815629, "is_transient":false, "error_user_title":"Duplicates of ad asset values are not allowed", "error_user_msg":"All ad asset values should be unique. Please check your values.(Duplicate value: 3)", "fbtrace_id":"A1sergAuftAtWjA8BctXnzy" }

facebook-github-bot commented 3 years ago

@Nathaaaalie merged this pull request in facebook/facebook-python-business-sdk@aed18d1c576dc3dd5f5117edbceaacd979c84725.