cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP object error - blueprism API Submission

Eliezer
Level 3

Hey developers, what's up?

I'm trying to use the HTTP object in the latest version to send an API request using the Post method with bearer Token.

In Postman the request works; however, in the blueprism environment, the error is being returned to me in the attachment.

I attached the settings I'm using, and also the Headers collection where I believe the problem is.

Can you help me?



------------------------------
Lucas Passos
Developer | Controlroom
Hering
Blumenau
48996845408
------------------------------
1 BEST ANSWER

Helpful Answers

Hi,

A screenshot of your Postman configuration would be helpful to debug the issue. Can you try without sending the Headers collection in BluePrism configuration.



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

View answer in original post

5 REPLIES 5

Hi,

A screenshot of your Postman configuration would be helpful to debug the issue. Can you try without sending the Headers collection in BluePrism configuration.



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Hi, @shashank.kumar280 

Here is the configuration that is working in POSTMAN.  I tried to use the native service for the API, instead of the HTTP Object, but I also have a generic API error.

I left my token hidden for security reasons. 



------------------------------
Lucas Passos
Developer | Controlroom
Hering
Blumenau
48996845408
------------------------------

Hello Lucas,

Does the "content-type" header field have a value filled in or is it null?  Try assigning a value to the field if it is null.


Regards,


------------------------------
Leonardo Soares
RPA Developer 
América/Brazil
------------------------------

Leonardo Soares RPA Developer América/Brazil

Hi Lucas,

As per the postman screenshot, I can see that the content-type is "application/json". can you please try "Post JSON" action from HTTP-Utility?



------------------------------
Athiban Mahamathi - https://www.linkedin.com/in/athiban-mahamathi-544a008b/
Technical Consultant,
SimplifyNext PTE LTD,
Singapore
------------------------------

Eliezer
Level 3
Hi Devs, what's up?
 
I managed to make the request.
 
What happens is this API has a content-leght obligation
 
I made VB code to count the bytes and sent this header along with the request.
 
Thank you all


------------------------------
Lucas Passos
Developer | Controlroom
Hering
Blumenau
48996845408
------------------------------