Uncaught (in promise) Error: Network Error at createError (createError.js:16) at XMLHttpRequest.handleError (xhr.js:99)

Viewed 3507

I am using react with express I initially thought it was caused by cors policy So I required cors in express and use cors However it still shows the same problem error messages in console

Code snippet

1 Answers

I cannot be sure without a code snippet but from the looks of the error your API request was denied due to a connection issue and you didn't handle catch for Promise rejection. Have you tried making the API call on something like Postman to see if the API is functioning correctly?

Related