E216:Unable to detect the file extension, or the file extension is incorrect, and no ‘file type’ provided in request. Please provide a file with a proper content type or extension, or provide a file type in the request to manually set the file extension.
Got above Error Message from the output of HTTP Request on n8n. With the parameters as following:
Method: POST
URL: https://api.ocr.space/parse/image
Header Auth: Header Auth account
Send Headers Header Parameters apikey K828129819xxxxx
Send Query Parameters: filetype: jpg url: {{$(“Webhook”).item.json[“body”][“upload_1”]}} https://see.architdz.tempurl.host/wp-content/uploads/sites/17/forminator/1447_8770c0738bd3232650081bd398ed69fa/uploads/NvhSK847EK9N-multisites2.jpg
We will love to pay for your pro service to get better Response Times, but need to make sure it is working as expected.
Thanks
I tested the issue here, but can not recreate it.
=>If you test the connection with Postman, do you get the same result?
You probably know it, but just in case: Postman is a free app, see Free OCR API
If you see the problem even with Postman, a screenshot of the result could be helpful.
Tested with Postman, it works as screenshot below.
After changing the Send Query Parameters to Send body for all parameters, got a different error message OCRExitCode 99
Unable to process the file. Please check if the file has sufficient permissions and allows access and is not corrupt.
But the image file is no problem to access via the above link.
Checked API Status Page, both 1 & 2 free OCR Engine are up, but still got the same problem.
Found the problem, url: {{$(“Webhook”).item.json[“body”][“upload_1”]}} was from previous setup, changed to {{ $json.body.upload_1 }} it works.
Thanks