cancel
Showing results for 
Search instead for 
Did you mean: 

Variable encoding issue - API response content is gibberish

Sabetin
Level 2

Hi,

I have an API web service set up in Blue Prism. Out of 3 actions, 2 work without any problems. 

The third one results in HTTP Status Code 200 and correct Response Headers but the Response Content is gibberish:

Sabetin_0-1723017893333.png

When I open the properties of Data Item, this is the view:

Sabetin_1-1723018012129.png

The expected response should look like this:

{"result":"success","deliveryEntry":"18516"}

Has anyone encountered such a problem? Any ideas what could cause this?

Regards,

Sabetin

2 REPLIES 2

steven.boggs
Staff
Staff

When a response is received that looks like the string in your screenshot with Unicode-looking characters, its usually either a binary response (i.e. an image or other binary data) or encrypted. Blue Prism doesn't handle that well as noted in this KB article here

A few suggestions:

- Check the response results for this non-working call outside of Blue Prism, i.e. in PostMan or something similar to see if there's binary (or encrypted) data being returned

- Try using the latest version of the HTTP VBO on the DX for this, which contains more functionality than Web APIs for dealing with response content as shown in your screenshot

Sabetin
Level 2

Hi,

thanks for replying. 
PostMan response is correct:

{"result":"success","deliveryEntry":"18516"}

I will try the VBO and get back to you.