unknown error when run async func
See original GitHub issuewhen I run my application, the error was catch by pool.execute(...).then(...).catch(...)
:
Error: at /data/node_modules/poolifier/lib/workers.js:67:19\\n at processTicksAndRejections (internal/process/task_queues.js:94:5)
any idea?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Nodejs Async/Await in api controller responds with unknown ...
No error gets thrown. I am using babel babel-plugin-syntax-async-functions to parse it. What is it that I am doing wrong?
Read more >How to fix the error “async call in a function that does not ...
This error occurs when you've tried to call an async function from a synchronous function, which is not allowed in Swift – asynchronous...
Read more >JSOM async page returns "Unknown Error" - MSDN
I'm having issues creating a new page on an existing site using JSOM against a Sharepoint Office 365 environment.
Read more >Handling Errors in Node (asynchronous) - Mario Kandut
Unknown errors are propagated from the divideByTwo() function, to the catch block and then up to the run function with the catch handler....
Read more >Type 'typeof ResultAsync' is not a valid async function return ...
I'm trying something very simple like: async function foo(): Promise { return ... 0 ) const bar = async (): Promise<Result<number, unknown>> =>...
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
I figured it out. the real error is: (after I add error log before the line 70)
and I print my return value
res
from worker:Before I return the
res
, I addres.result = JSON.stringify(result)
, then it works fine.My questions are:
pool.execute
seems lack error.message, only contains the error.stack?I will try