Closed woolfg closed 1 year ago
It's probably because of our middleware.
We're using middleware and call next()
after sending the response. The middleware function may not try to send a response.
app.get('/path', (req, res, next) => {
res.send('Hello, World!');
next(); // Don't call next after sending a response
});
Maybe happens here, which is our error handler? https://github.com/openpodcast/api/blob/d9acef6bbed235bbf95fdee0c823bbaf356c4fb7/src/index.ts#L420
will pop up again if still a problem.
when running the test suite the following error is thrown on the server even though all tests are green