Question
Azure Function App getting ConnectionResetError when connecting to Zendesk API
Our Azure Function App fails to connect to Zendesk with the following error:
ConnectionResetError(104, 'Connection reset by peer')
This happens on every request to our Zendesk subdomain — including a simple unauthenticated GET request:
requests.get("https://{subdomain}.zendesk.com/api/v2/tickets.json", timeout=10)
- The same code with the same credentials works fine locally
- Our Azure NSG allows all outbound internet traffic
- No IP Restrictions are configured in Zendesk Admin Center (confirmed by our Zendesk admin)
- Our Zendesk admin confirmed OAuth is configured correctly and tokens can be generated
- Other third-party APIs (e.g. ZOHO) work perfectly from the same Azure environment using the same
requestslibrary - Even a basic unauthenticated GET to Zendesk fails — ruling out any OAuth or credential issue
Has anyone experienced this before? Is there a known solution or a way to get Azure datacenter IPs whitelisted on Zendesk's infrastructure level?
