Help Center> Optical Character Recognition> FAQs> Error Code> How Do I Handle the Error ModelArts.4603 or ModelArts.4704?
Updated on 2023-10-26 GMT+08:00

How Do I Handle the Error ModelArts.4603 or ModelArts.4704?

There are two possibilities to check:

  1. If error message "Obtaining the file from the URL failed." and error code "ModelArts.4603" are displayed, the image data fails to be obtained from the URL.

    Check if:

    The URL supports the HTTP/HTTPS request protocol. The format should be http/https url.

    The server for storing images is stable and reliable, the network connection is normal, and if the server is accessible to the Internet.

    The content type of the image to be downloaded complies with the content-type format in the HTTP or HTTPS header, for example, image/gif, image/jpeg, image/png, or image/tiff (Suggestion: Use the URL of OBS).

  2. If error message "Obtaining the file from the OBS failed." and error code "ModelArts.4704" are displayed, the image data fails to be obtained from OBS.

    Check if:

    The OBS path for storing images exists and is accessible. If the path exists, ensure that the OBS bucket for storing images is a public bucket.

    Do not use an OBS path across regions.

    OBS and the region where the service to be called is deployed are not in the same region. If they are in different regions, download the image to a local host and then call the service using the image method.

Error Code FAQs

more