-
Notifications
You must be signed in to change notification settings - Fork 121
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
Action addRoute tries to serialize function #294
Comments
I think the issue is here: https://github.com/moleculerjs/moleculer-web/blob/master/src/index.js#L1177 where the entire route is returned with functions included... |
Hi @giovanni-bertoncelli can you please create a repro repo? |
We can't fix it. Related open issue in cbor repo: kriszyp/cbor-x#2 |
We have software in production that has migrated to the CBOR serializer... this bug can be very frustrating, can't this be fixed on the moleculer side or with a PR on cbor-x? |
Alternative, if you copy the CBOR serializer code and walk the payload in |
I'm using the new gateway action
addRoute
and it seems to try to serialize a function, which is not a problem with JSON serializer, but with CBOR for example crashes the entire node.The text was updated successfully, but these errors were encountered: