You can switch to other available region in case of 500 internal server error.
Regional support for all Azure services
If it is a custom model, you can use copy authorization to copy the model to another document intelligence resource (different region)
You might need to implement custom retry logic, but in case of 500 error, it is better to switch to another resource, Retries are more fruitful in case of 429 rate limit errors
for retry_attemp in range(retry_count):
try:
results = await poller.result()
success = True
except Exception as ex:
logger.error(f"Attempt {retry_attemp}: GET Exception {ex}")
await asyncio.sleep(retry_sleep)
token = poller.continuation_token()
poller = await client.begin_analyze_document_from_url(
None, None, continuation_token=token
)
continue
Reference for retry logic- https://github.com/Azure/azure-sdk-for-python/issues/35952#issuecomment-2168864017
Other areas are to check are
- Permission (Cognitive Services user)
- Change in network configuration (Please check you have subnet/join permission on virtual network if document intelligence source moved to virtual network)
- Please check from metrics tab if you have exhausted your quota. Service limits, Troubleshoot latency issues
- Any policy related blocks can be checked in activity logs or application insights.
Hope it helps
Thank you.