Skip to main content
Participant
October 30, 2024
Answered

Receiving an Error on response with Send Document step 3 of the Extract PDF API Colleaction

  • October 30, 2024
  • 1 reply
  • 972 views

Good day everyone, 

 

I am sending a request for the Extract PDF API, I have tested the API requests with Postman, they are working just as fine, but now I want to implement on my system that I am developing using Bubble.io, a low code platform, so I get the error when I send the request. Error Code 403.

 

I have attached the screenshot of my API setup and the error I am getting.

 

I am not sure as to what it is that I am doing wrong, please assist me. I really do appreciate your time and effort to look into this matter, thanking you in advance

This topic has been closed for replies.
Correct answer Raymond Camden

Couple of things. I would not post even part of your client ID in your screenshots next time. 

 

In your upload call, you should not be passing _any_ auth info, the x-api-key should be removed. Ditto for the x-amz-algo part of your body. 

 

Your PUT should include content-type and content-length, and the binary data, that's about it.

1 reply

Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
October 30, 2024

Couple of things. I would not post even part of your client ID in your screenshots next time. 

 

In your upload call, you should not be passing _any_ auth info, the x-api-key should be removed. Ditto for the x-amz-algo part of your body. 

 

Your PUT should include content-type and content-length, and the binary data, that's about it.

Participant
November 2, 2024

Heyy Raymond, 

Thank You so much! that really helped a lot I manged to get past that error.

 

However, the issue I have now, is that my content-length is zero, meaning the files being passed it seems like the API doesn't get it's contents, and I have verified, the file exists in the path I provide and the file is too not empty.

 

Do you have idea as to what could be the issue?

Raymond Camden
Community Manager
Community Manager
November 4, 2024

Where do you see a zero length content? To be clear, when you do the PUT, you need to pass that value yourself.