I am getting Error: read ECONNRESET

This happens when the server closes the TCP/IP connection before the client receives a response.

Where in your code do you specify the /api/ path prefix on your endpoints? Your screenshot of the console error indicates localhost/api/put for example. Is there more code below the Node/Express code that you’ve shared that adds that as a path prefix? Can you also include that please?