How to catch this error : Error using matlab.internal.webservices.HTTPConnector/copyContentToByteArray (line 373)
13 views (last 30 days)
Show older comments
Munir Baldomero on 3 Oct 2021
Commented: Walter Roberson on 3 Oct 2021
I am using webread so I can download all the data i need for my research. I always encounter this error
Error using matlab.internal.webservices.HTTPConnector/copyContentToByteArray (line 373)
The server returned the status 503 with message "Service Unavailable" in response to the request to URL
How can I catch this error so I can return back and do the process on the same data point?
Walter Roberson on 3 Oct 2021
503 basically means that the server is down or busy.
Historically, I have seen some places return 503 when they should have returned 401 (unauthorized) or 403 (forbidden), meaning that the current user is not permitted to ask for that resource. 503 is not the correct response in such cases, but it has been observed "in the wild".
Find more on Web Services in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!