non-string populate.select throws uncatchable error:
See original GitHub issuedoing the following query: /User?populate={"path":"father", "select":["name", "age"]}
(select
is an array which is invalid format)
throws the following error: TypeError: Invalid select() argument. Must be string or object.
That error cannot be caught as it does not trigger options.onError
neither the generic express app.use((req, res, next, error) => {})
middleware and it instantly kills the api server
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Uncatchable ChuckNorrisException - java - Stack Overflow
It generates a verifier error: Exception in thread "main" java.lang.VerifyError: (class: TestThrow, method: ma\ in signature: ([Ljava ...
Read more >MException - MathWorks
The MException object contains retrievable information about errors. MATLAB can throw either predefined exceptions or exceptions that you construct. Creation ...
Read more >Error and Transaction Handling in SQL Server Part One
Introduction. This article is the first in a series of three about error and transaction handling in SQL Server.
Read more >Why asynchronous exceptions are uncatchable with callbacks
Throwing an error asynchronously means that an error is thrown in the JavaScript code of an asynchronously executed callback. Throwing exception asynchronously.
Read more >try...catch - JavaScript - MDN Web Docs - Mozilla
The code in the try block is executed first, and if it throws an exception, the code in the catch block will be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
here’s the stack trace:
EDIT: tried this with both 4.0.1 and the latest 3.* version
that looks good to me