-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors
Description
p5.js version
any
What is your operating system?
None
Web browser and version
No response
Actual Behavior
In many files, the server responds with raw errors using res.status(500).json({ error: err }) which could leak internal stack traces, internal DB messages or sensitive information.
Expected Behavior
Return a simple message instead of returning the stack trace: res.status(500).json({ error: 'Internal server error' });
Steps to reproduce
Uncaught errors in the code which are caught using these code could respond with sensitive info
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors