ERROR in consuming Rest API

ERROR in consuming Rest API

  

Hi,

I have been trying to consume REST API. When I am testing the API on Outsystems,  It's giving me responses but when I'm using it in my application it's throwing 500 Server Error. Any suggestion on this?

Hi Shashankit,

Can you please validate configuration like effective url or some other configuration if any.

If you can provide some sereenshot or oml then I can look into it.


Regards

-SK-

Hi Shashi,

Because of confidentiality concerns I can't share any oml or Screenshot. But Yeah, I can share  the error log which is
HTTP/1.1 500 Server Error
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json
Date: Tue, 13 Nov 2018 05:35:55 GMT

{"faultcode":"Server", "faultstring":"Internal system error. "}

my API works well on POSTMAN and While Testing on Outsystems but throws error when I try to consume it by passing parameters.

I'll try validating configurations and let you know. 

Thanks!



Hi Shashankit Thakur,

Postman and Test in ServiceStudio call your REST API from your development computer. When you consume it on your application it is the OutSystems Server that is calling the API, so there might be different proxy configurations, security/network restrictions, etc in place.