Skip to main content
Participant
Oct 30, 2024 4:10 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
Raymond Camden
Raymond CamdenCorrect answer
Community Manager
Oct 30, 2024 4:28 PM UTC

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.

3 replies

Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
Oct 30, 2024 4:28 PM UTC

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.

Translate
Participant
Nov 2, 2024 4:05 PM UTC

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?

Translate
Raymond Camden
Community Manager
Community Manager
Nov 4, 2024 2:15 PM UTC

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

Translate