Hi All,
How to consume a rest API where the site is in local server.
I have tested with Postman from the same local server and it works perfectly .
I have also installed the service studio in the same local machine and trying to connect the REST API but it throwed up an error "The remote name could not be resolved: 'sc93sc.dev.local'". Does this API should be in cloud to consume.?
Regards,
Vinod
Hi Vinod,
Please take a look at these links:
https://www.outsystems.com/forums/discussion/63715/consume-rest-webservice-error-the-remote-name-could-not-be-resolved/
https://www.outsystems.com/forums/discussion/32497/unable-to-connect-to-the-remote-server/
Let me know if they help.
Best regards,
Pedro
A rest API can only be consumed if it has a valid public domain or public IP address so that it can be exposed to the world and can be ready for consumed.
You can get the response in local through postman as your postman is in local and it sends request from local only
but in case of service studio code is executed in cloud (outsystems cloud) unless you have on premise license of outsystems and the request is generated from the cloud and as you don't have valid public domain you are getting exception
Hope this will help you.
Bets regards
Devendra