skip to Main Content

MySQL saving issue node

I’m setting up a subdomain where users can upload updates to the database. The correct data gets sent from the front end, and the API connects to the database successfully but stops there. I can’t figure out why. app.post('/newsupdate', (req,…

VIEW QUESTION

Express and MySql

When I'm sending a POST request to MySql database, it adds the product but it shoots me with that error. Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:387:5) at ServerResponse.setHeader (node:_http_outgoing:603:11) at…

VIEW QUESTION
Back To Top
Search