CodingTrain/Intro-to-Data-APIs-JS

POST and GET requests cannot be made in Windows 10

w3dg opened this issue · 4 comments

w3dg commented

![Capture](https://user-images.githubusercontent.com/51162936/62928620-7b40b500-bdd6-11e9-9a5b-a8cdb8ff281b.JPG
I am using Windows 10 with IIS enabled. I am running node.js and live-server. I had tried to follow the tutorial and make the app but the point when we fetch it through the '/api' route, I cannot seem to get it working. I even changed the name of the route and tried but no luck...
Am I missing any configuration or anything else is needed? However, Chrome does not show any error when the website is first loaded...

w3dg commented

Capture

Sorry to hear it's not working! The way I built that app you shouldn't also use live-server, just the node server itself. And make sure you are making the correct request to the right port number!

w3dg commented

Hey! The App is now working !! I sourced in the p5.js and p5.dom.js files directly and then ran node index.js in the terminal. I was able to capture the image and send it into the database. Thank you for your precious time and
effort!

w3dg commented

Capture