-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Error Handler on aliasHandler #60
Comments
Thanks, I'm fixing. |
Could you show relevant parts of your code? I can't reproduce it. For me, no unhandled rejection, the error goes back to the caller properly. Custom alias: aliases: {
"POST users": "users.create",
"health": "$node.health",
"custom"(req, res) {
res.writeHead(201);
res.end();
}
}, with this |
Not in alias, You may reproduce this way,
and request any route. and get |
By the error message, I think the problem is not in |
This is my resolveToken code |
I know the error message is from jwtwebtoken package, I just want to response error code and message. |
The |
Yes, |
I tried it but no unhandled rejection. Could you create a small repro repo? |
https://github.com/theRichu/moleculer-web-unhandled check this repo please |
Thanks. The unhandled issue is fixed in the |
Hi,
I encounter 'unhandled rejection' error when upgrade moleculer-web v0.6.3 to v.0.8.0
and I've found error handler is missing on aliasHandler,
In my situation,
in authorize function, return promise with rejection I've got unhandled rejection error
and my suggestion
src/index.js :392
The text was updated successfully, but these errors were encountered: