Personal Library

I am working on the Personal Library Project and just finished writing the chai tests all of the tests pass but I get an error so I can’t submit the project.

here is the error:

11 passing (499ms)

node:internal/errors:484
ErrorCaptureStackTrace(err);
^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:393:5)

has anyone seen this error and have any idea what is the cause of it is? My tests are passing so it seems like they aren’t causeing the error?

here is my replit:

boilerplate-project-library - Replit

It wasn’t the tests at all I had a bunch of unreturned res.json statements in my api.js file

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.