We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to use RSocketServer in javascript, but when I provide serializers option, the frames are getting deserialized twice.
RSocketServer
serializers
const server = new RSocketServer<string, string>({ // .... getRequestHandler: socket => ({ requestChannel: payloads => handleRequestChannel(socket, payloads), }), serializers: JsonSerializers, });
I added breakpoints and found the two locations where it is getting deserialized.
The first deserialization is happening here, https://github.com/rsocket/rsocket-js/blob/v0.0.27/packages/rsocket-core/src/RSocketMachine.js#L711-L714
The second deserialization is happening here, https://github.com/rsocket/rsocket-js/blob/v0.0.27/packages/rsocket-core/src/RSocketMachine.js#L832
During second deserialization RSocketServer is crashing with this error,
The frame should be deserialized only once.
It's getting deserialized in two places in the data pipeline.
I don't have a test case at the moment.
Review the data pipeline and remove the second deserialization. Add a test case to test serializers
netty
javar -version
node --version
uname -a
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to use
RSocketServer
in javascript, but when I provideserializers
option, the frames are getting deserialized twice.I added breakpoints and found the two locations where it is getting deserialized.
The first deserialization is happening here,
https://github.com/rsocket/rsocket-js/blob/v0.0.27/packages/rsocket-core/src/RSocketMachine.js#L711-L714
The second deserialization is happening here,
https://github.com/rsocket/rsocket-js/blob/v0.0.27/packages/rsocket-core/src/RSocketMachine.js#L832
During second deserialization RSocketServer is crashing with this error,
Expected Behavior
The frame should be deserialized only once.
Actual Behavior
It's getting deserialized in two places in the data pipeline.
Steps to Reproduce
I don't have a test case at the moment.
Possible Solution
Review the data pipeline and remove the second deserialization.
Add a test case to test
serializers
Your Environment
netty
, ...):javar -version
) or Node version (node --version
)):uname -a
):The text was updated successfully, but these errors were encountered: