Report this

What is the reason for this report?

How do I consume my REST endpoint through a proxy?

Posted on October 6, 2019

Hi,

I have deployed a Java SpringBoot application on a droplet running Ubuntu. The application is running with the java -jar command. I’m able to call the exposed endpoint by making a get call to (ip address of the vm):(exposed port)/contextroot/helloworld. From my personal computer this works fine while testing with Postman and results in the expected Json. However, when I make the same call from my machine from work, it says the address cannot be found. My work machine is routing all traffic through a proxy. What can I do to expose this REST endpoint properly? So machines with and without a proxy can consume it?

If any further details are needed, please ask! Thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.