hi there, Romain. that's super frustrating when a service just stops working out of the blue, especially with such a long timeout )) let's see what we can do to troubleshoot this.
a 503 error usually means the service is overloaded or there's some backend hiccup on microsoft's side. the first thing you should always check is the azure status page. look for 'azure cognitive services' in the services list to see if there's a known issue in the westeurope region. you can find that here https://status.azure.com/status
if the status is green, the problem might be on your end. try these quick steps. check your subscription status in the azure portal. make sure your cognitive services resource hasn't been accidentally disabled or your subscription isn't past its expiry date. also, verify your billing is all up to date.
next, test your api key. sometimes keys get regenerated or revoked accidentally. go to your computer vision resource in the portal and grab the key from the 'keys and endpoint' section. try a simple curl request with the new key to see if it works.
curl -X POST "your_endpoint_here" -H "Ocp-Apim-Subscription-Key: your_key_here" -H "Content-Type: application/json" --data-ascii "{'url':'https://example.com/image.jpg'}"
this might help isolate if its a key issue or something deeper.
if that doesn't work, try creating a new computer vision resource in a different region, like east us. sometimes a specific region has a temporary outage. you can quickly test if the api works from another location.
aha, and also check your quotas. if you've hit a request limit or a throughput cap, the service might be throttling you. the quotas are in the 'quotas' section of your cognitive services resource.
if you are still stuck, the best move is to open a support request in the azure portal. the support team can look at the backend logs for your specific resource and see what's causing the 503.
hope this gets your vision api back up and running soon. let me know how it goes.
Best regards,
Alex
and "yes" if you would follow me at Q&A - personaly thx.
P.S. If my answer help to you, please Accept my answer
https://ctrlaltdel.blog/