Closed nikedlab closed 2 years ago
Hey, looks like you just build empty metadata
in request.
It should be:
metadata(RoutingMetadata("subscribe.user"))
instead of:
metadata {
RoutingMetadata("subscribe.user")
}
when building payload via buildPayload
Hey @olme04 Thank you for answer I've checked this way also and having another error
I see, that you are using composite metadata in setup payload, so looks like your server only supports it. So you should also use composite metadata (same as you used in setup payload) for requests:
buildPayload {
compositeMetadata {
add(RoutingMetadata("subscribe.user"))
}
data(ByteReadPacket.Empty)
}
Also, it will be better to change metadata mime type in setup payload to composite metadata:
payloadMimeType = PayloadMimeType(
data = WellKnownMimeType.ApplicationOctetStream,
metadata = WellKnownMimeType.MessageRSocketCompositeMetadata
)
I don't now about your server implementation, but this can also affect how it will decode metadata.
In this case, you should also use compositeMetadata
builder in all future requests.
Finally! Thank you So problem was in wrong mime type for metadata
I'm glad that I could help you!
I have na issue with requesting stream from our server. We have auth by token and I need to subscribe to specified route. I made a client looking onto examples but my code doesn’t work and I unable to find out any suggestion how to fix it
There is my code
and there is logs
Please help me to figure out what I'm doing wrong? Is it my or server side issue?