CodingTrain / Intro-to-Data-APIs-JS

Working with Data and APIs in JavaScript
MIT License
756 stars 611 forks source link

POST and GET requests cannot be made in Windows 10 #42

Closed w3dg closed 5 years ago

w3dg commented 5 years ago

![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 5 years ago

Capture

shiffman commented 5 years ago

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 5 years ago

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 5 years ago

Capture