rsocket-net: Improperly formed default mime type causes connection error when connecting to spring-boot rsocket server
Hi everyone,
I have a Spring Boot RSocket server and I am unable to connect to it with your example. I got a rejected Setup : 0000 Error {000}: [00000003] Invalid mime type “binary”: does not contain ‘/’ I tried some options in RSocketOptions but alyaws the same error
Here is my spring server config :
spring:
rsocket:
server:
port: 7000
transport: tcp
Here is my dotnet program
var client = new RSocketClient(new SocketTransport("tcp://localhost:7000"), new RSocketOptions(){ InitialRequestSize = 3 });
//var client = new RSocketClient(new WebSocketTransport("ws://localhost:9092/"), new RSocketOptions() { InitialRequestSize = 3 });
//var client = new RSocketClient(loopback);
await client.ConnectAsync();
The server is working, I did manage to handle RSocket data with another spring boot client.
Thanks for your help !
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 18 (11 by maintainers)
@foyss can you try passing options directly into
ConnectAsyncthat should fix your problem
Hi @broadside74 !
We have improperly formed mime-type which should be
application/octet-streaminstead ofbinaryThanks for finding that. Feel free to create a PR or otherwise I will do that shortl.
Cheers, Oleh