Getting Status Code 0 in API Requests

Hello!
I’m facing an issue when using API request using UiPath.WebAPI.Activities. The call return status code 0, but when I call the same API with the same parameters in the same machine using postman it works well.
Is there any other lib for API Requests?

Thank you!

Hi,

Status code 0 means unable to communicate with server via HTTP(s).
So, it might be better to check network settings such as proxy, SSL certificate etc.

Regards,

@Yoichi , thanks for your answer. But, in postman de API call works in the same network.

Hi,

Some matters of network depends on application settings.
To isolate causes, can you try to send (preview) Get method to this forum, for example, as the following?

If settings of proxy etc is good, we can get content as the following.

And also, can you check if there is some information regarding this matter in EventViewer of OS (Windows Logs- Application)?

Regards,

Hi @felipegcastanho1

Would it be possible for you to provide some more information about your activity configuration and the API call? (I know it’s been a while a go, but it won’t hurt to try).