cancel
Showing results for 
Search instead for 
Did you mean: 

Web API- 502 error

daultani
Level 3
Hello,

Could you please help me on below query-

In my use case I have to do below steps through API connections:
1) Generate Token (Using username & Password and Post method).
2) Using generated token , Get all printer details(Using given headers and Get method)
I am able to generate token but when I am using same token with other headers, getting error code 502.
12696.png

Output- Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 502
HTTP Response Content: <h2>Incomplete response received from application</h2>

I

Please help me on this.

Regards,
Bhawana

------------------------------
Bhawana Daultani
------------------------------
4 REPLIES 4

ewilson
Staff
Staff
A 502 is a bad gateway error. You can read more about it here. This means you're traversing a gateway or proxy server in order to get to the actual target server, and the response the gateway/proxy received from the target server was not correct.

Have you tried testing this with Postman?

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Eric,

Yes I tried with Postman also, same error is coming.
12690.png

------------------------------
Bhawana Daultani
------------------------------

Ok. This tells us it's likely an issue with the server you're trying to connect to. Is this a server within your own environment? If so, I'd suggest reaching out to your IT department or the owner of that server to see if they can review their logs to see what it thinks the issue is.

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

yes it worked.

There was an issue with the api headers given by them.

Thanks.

------------------------------
Bhawana Daultani
------------------------------