Skip to content
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

Using route with metadata doesn't work #117

Open
joshiste opened this issue Mar 9, 2021 · 1 comment
Open

Using route with metadata doesn't work #117

joshiste opened this issue Mar 9, 2021 · 1 comment

Comments

@joshiste
Copy link

joshiste commented Mar 9, 2021

Expected Behavior

send metadata along with the route should work.

Actual Behavior

yields

ApplicationError: JSON decoding error: Unrecognized token 'þԀ琄獥': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'þԀ琄獥': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 5]

Steps to Reproduce

$ rsocket-cli -m '{"test" : "value"}' --metadataFormat=application/json --channel --route test -i test --debug wss://localhost:8080/ws

Your Environment

installed via brew: yschimke/tap/rsocket-cli 1.29 on macOS 11.2.1

$ rsocket-cli --version
dev
@yschimke
Copy link
Member

Thanks for reporting. I've recently cleaned up the way metadata is sent so it no longer relies on rsocket-java, so hopefully much easier to implement https://github.com/rsocket/rsocket-cli/blob/master/src/main/kotlin/io/rsocket/cli/Main.kt#L237-L250

Is this something you might be tempted to submit a PR for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants