REST API - Method and/or Endpoint execution failed (HTTP 500 - Unable to connect to the remote serve

  • 25 March 2022
  • 3 replies
  • 101 views

Hi There, 

I am working on a REST API Smatobject and while executing it from Management it throws the below error.However when i am trying to exeute my Postman Collection and Swagger file it works fine. 

I am not able to understand what i am missing and where.

22437iB727E7F718550F2B.png

Requesting help from yall k2 experts out there rocking.

 

Thanks in Advance.


3 replies

Userlevel 1
Badge +7

Hi,


 


Is the ip address in the error message pointing to the server where your API is hosted? Have you tried testing your API with Postman ON the K2 server itself?

Hi, 


Thanks for your reply !


Yes you are ryt it is the same server where my API is hosted.


Also yes i tried PostMan on K2 Server itself it works fine.


I am getting the error when i am trying to execute the smartobject from Management.


 


Regards !


 

Userlevel 1
Badge +7

You can configure K2 to use Fiddler as a proxy, and have Fiddler intercept any request K2 tries to send to your API. You can inspect the request with Fiddler to see if there's anything different that K2 is doing compared to Postman.


 


https://community.nintex.com/t5/How-To/Using-Fiddler-to-capture-K2-Host-Server-requests/ta-p/123761


https://community.nintex.com/t5/How-To/Cannot-setup-Fiddler-as-HostServer-Proxy-on-K2-Five-5-3-due-to/ta-p/126245


 

Reply