DEV Community

Discussion on: Error: [nodemon] app crashed - waiting for file changes before starting...

Collapse
dcodeyt profile image
Dom (dcode)

It's possible that the API you're using supports either an HTML or JSON response. You could try setting the Accept header to "application/json" to see if you then get a JSON response back.

Thread Thread
hafizsaifullah profile image
Hafiz Saifullah Author

Thank You @dom for your kind response, but I am new to coding, so I am facing troubles to understand that what is Accept header and how can I set it to "application/json".