Error Responses
Errors you might encounter when making requests to the mlapi API.
400 - Failed to fetch PDF from URL
This error occurs when we were unable to fetch PDF content from given URL.
Error response will look like this -
Possible ways to avoid it
Verify that you are sending correct url
Make sure that pdf is actually hosted in that url
Make it public, so other people can access it as well
400 - Failed to read file
This error occurs when we failed to read the file content that you shared.
Error response
Possible ways to avoid it
Make sure that you are sending correct file
Verify that you can read that file on your end
Set proper permissions to your file before sending it
Do not send password protected files
400 - No PDF URL or file provided
You will get this error of you don't specify any pdf_url or don't send any file while making api request.
Error response
Possible ways to avoid it
Make sure that you are either sending pdf_url or file while making api request.
500 - An error occurred while extracting pdf content from url
This error occurs when there was some error while extracting pdf content from given url
Error response
Possible ways to avoid it
Make sure that you are sending correct url
Verify that pdf content is actually avalible in that url
Make sure that the url is public and anybody can access it
500 - Failed to process PDF
You will get this error in response when there was an error while processing your pdf. If you do get this error then make another api request and see if it could be resolved.
Error response
Possible ways to avoid it
make sure that you are sending current pdf url and file content
Try making api request again to see it is resolved or not
Contact us if this error is not resolved.
Last updated