Unable to make API call in uipath to docuware but i can in postman?

I successfully obtain the access token using a post Postman request, but when I attempt to use the HTTP Request activity in Studio, I encounter a 502 Bad Gateway error. Does anyone know how to resolve this?

@lr101,

Can you show what’s your configuration in Postman and HTTP Request? Obviously, replace sensitive data.

1 Like

Hey @lr101
If your request works in Postman but gives a error in UiPath, it’s likely due to a configuration difference.
If you can share a screenshot of your HTTP Request settings in UiPath and how it looks in Postman it’ll be easier to help you.

Hi @lr101

Try to verify the API endpoint, ensure correct authorization (Access Token in headers), match Postman settings (headers and body), and check proxy settings. Also, increase timeout oR test with a simple API call.

Happy Automation

Hi @lr101,

Can you check what value you have provided in Body format?

It should be “application/x-www-form-urlencoded

Also, refer below thread for resolution on this issue:

Regards
Sonali

1 Like

A couple of things that can be useful

  1. Don’t use HTTP Request Wizard. Try to setup the activity directly and test it. It may confuse you
  2. Here is how i approached a request of type application/x-www-form-urlencoded

Ensure Body Format is set correctly

Body

I created a string concatenating Field keys followed by equal then the value and separated by &

The same way you can create your body

Hope it helps

1 Like

So i tired to do the exact same call on my work mates pc and it worked. for some reason the UiPath application is defaulting to a proxy. where can i find the proxy settings?

@lr101,

You can find the same in UiPath.config file under UiPath installation directory.

Should be like c:/program files/UiPath/UiPath.config

It would be present under webproxysettings xml tag under that file.

Also, you can check from windows → internet and network settings → proxy settings
Regards
Sonali