Skip to content

Uncaught errors while using https #407

Answered by kitsonk
timpeq asked this question in Q&A
Discussion options

You must be logged in to vote

@timpeq these are errors that are happening outside of the processing of the middleware. Instead of swallowing them, oak is surfacing them, because the native HTTP server is surfacing them. As you mention, they are "bad" requests hitting your server, with bots trying to look for exploits.

The FAQ - I am seeing [uncaught application error] in the output, what is going on? covers this.

In addition, you can set a app.addEventListener("error", (evt) => { /* ... */ }); to log or action these types of errors in a more meaningful way (or just ignore certain classes of them).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@timpeq
Comment options

Answer selected by timpeq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants