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

Meta API does not respond to requests, hosted on Azure #663

Closed AlembicReid closed 4 months ago

AlembicReid commented 4 months ago

Developer.facebook.com/support is broken

When we make a request via the facebook business api in python, such as 'create_campaign()', Intermittently the Azure APIM does not receive a response from our graph api, and eventually we time out. This error does not occur locally, only when deployed on azure.

Error placing ad for campaign: Meta: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

stcheng commented 4 months ago

Based on the description, it appears to be more of an environment setup issue rather than an issue with the SDK or the Marketing API.

AlembicReid commented 4 months ago

Good morning Shuotian,

Looks like through our testing, we found that removing the SDK layer and making direct calls to the graph api fixed the issue. Please investigate this issue.

Thanks, Reid

From: Shuotian Cheng @.> Date: Friday, March 1, 2024 at 4:17 PM To: facebook/facebook-python-business-sdk @.> Cc: Reid Brostoff @.>, Author @.> Subject: Re: [facebook/facebook-python-business-sdk] Meta API does not respond to requests, hosted on Azure (Issue #663)

Based on the description, it appears to be more of an environment setup issue rather than an issue with the SDK or the Marketing API.

— Reply to this email directly, view it on GitHubhttps://github.com/facebook/facebook-python-business-sdk/issues/663#issuecomment-1973930386, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBY4VDGZV4KYAGKD4M4E2XLYWDV5DAVCNFSM6AAAAABDRQWRF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZTHEZTAMZYGY. You are receiving this because you authored the thread.Message ID: @.***>

stcheng commented 4 months ago

@AlembicReid Could you provide some more debugging details about this case? In your testing, how did you make the direct calls? Have you tried to construct the raw API calls within Python or via some CLIs?