Report this

What is the reason for this report?

What should I change localhost:3000 axios requests to when deployed?

Posted on February 4, 2021

I’m having trouble with figuring out how to access my express api. On my local development machine I had no trouble accessing it with axios requests for example:

 axios
        .get(`http://localhost:3000/pollPage/fetchMovie/${query}`)
        .then((response) => {

however now that my app is deployed these requests do not work anymore they give me 404 errors. what should I change these requests to so that my app is able to function again? If you want to know how my application is setup here is the github link: https://github.com/jak6jak/movie-polling

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.