Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
APPLIES TO:
NoSQL
The SDK wasn't able to connect to Azure Cosmos DB. This scenario can be transient or permanent depending on the network conditions.
It's important to make sure the application design is following our guide for designing resilient applications with Azure Cosmos DB SDKs to make sure it correctly reacts to different network conditions. Your application should have retries in place for service unavailable errors.
When evaluating the case for service unavailable errors:
The following list contains known causes and solutions for service unavailable exceptions.
In certain conditions, the HTTP 503 Service Unavailable error includes a substatus code that helps to identify the cause.
Substatus Code | Description |
---|---|
20001 | The service unavailable error happened because there are client side connectivity issues (failures attempting to connect). The client attempted to recover by retrying but all retries failed. |
20002 | The service unavailable error happened because there are client side timeouts. The client attempted to recover by retrying but all retries failed. |
20003 | The service unavailable error happened because there are underlying I/O errors related to the operating system. See the exception details for the related I/O error. |
20004 | The service unavailable error happened because client machine's CPU is overloaded. |
20005 | The service unavailable error happened because client machine's thread pool is starved. Verify any potential blocking async calls in your code. |
20006 | The connection between the service and client was interrupted or terminated in an unexpected manner. |
>= 21001 | This service unavailable error happened due to a transient service condition. Verify the conditions in the above section, confirm if you have retry policies in place. If the volume of these errors is high compared with successes, reach out to Azure Support. |
Verify that all the required ports are enabled.
Service unavailable exceptions can surface when there are transient connectivity problems that are causing timeouts and can be safely retried following the design recommendations.
Follow the request timeout troubleshooting steps to resolve it.
Check the Azure status to see if there's an ongoing issue.
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Monitor responses and events in Azure Cosmos DB for NoSQL - Training
We will learn to use a rich set of REST response codes returned by Azure Cosmos DB request to help you analyze potential issues.
Certification
Microsoft Certified: Azure Cosmos DB Developer Specialty - Certifications
Write efficient queries, create indexing policies, manage, and provision resources in the SQL API and SDK with Microsoft Azure Cosmos DB.