rsocket-cli icon indicating copy to clipboard operation
rsocket-cli copied to clipboard

Using route with metadata doesn't work

Open joshiste opened this issue 4 years ago • 1 comments

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

joshiste avatar Mar 09 '21 10:03 joshiste

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?

yschimke avatar Mar 27 '21 07:03 yschimke