How to catch this error : Error using​ernal.webs​ervices.HT​TPConnecto​r/copyCont​entToByteA​rray (line 373)

13 views (last 30 days)
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?
  1 Comment
Walter Roberson
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".

Sign in to comment.

Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!