Hello everyone,
I am trying to integrate the PDF.co API with OutSystems to upload a PDF file, but I am receiving a "404 Not Found" error when calling the API endpoint from OutSystems. The same flow works correctly in Postman.
Configuration Details:
Process Used:
I am using the MultipartFormDataCreate component in OutSystems to prepare the PDF file:
After obtaining the binary content of the file, I pass it to the REST API call with the following parameters:
Issue Encountered:
Even though the flow works in Postman, I am getting a "404 Not Found" error from OutSystems. I have verified that the URL, parameters, and headers are configured correctly.
Question:
Is there any configuration difference between Postman and OutSystems that might be causing this error? Has anyone encountered a similar issue or have suggestions on how to resolve it?
Thank you in advance for your help!
Best regards,Binod CominiLink OML:
Hi @Binod Comini,
May be this error occur because you don't pass xapikey value in your code.
Can you please check with passing this value, or you can share I will try and pass.
Regards,
Rajat
Hi Rajat,
Thank you for your response. In fact, I removed the xapikey value before creating the OML, so it's not an oversight.
Thanks again for your assistance!
Best regards,
Binod Comini
Hi Binod,
Be aware that Postman runs on your local computer, while OutSystems runs in the cloud. Therefore it could be that the cloud computer can't reach or resolve the address you specify, even if your local computer can. Alternatively, it could also be the case that you have misconfigured the address in OutSystems.
So the first steps to take, is checking in Service Center:
Hi Kilian,
Thank you for your suggestion. I have confirmed that the API endpoint URL is correct, so the issue is not with the address itself. However, I will follow your advice and check Service Center to review more details, such as the integration logs and the full URL being used. I'll also increase the logging level to gain more insights into the problem.
I'll keep you updated.
Thanks again!
Binod