Skip to content

HeaderDelimitedMessageHandler fails when formatter does not implement IJsonRpcMessageTextFormatter #1282

@znakeeye

Description

@znakeeye

Using version 2.22.11. Trying to communicate between two processes using a named pipe. This is how both of them are initialized:

var handler = new HeaderDelimitedMessageHandler(Pipe, new MessagePackFormatter());

However, when calling a simple echo method via the proxy, I get this error:

System.NotSupportedException: 'Text encoding is not supported because the formatter "StreamJsonRpc.MessagePackFormatter" does not implement "StreamJsonRpc.IJsonRpcMessageTextFormatter".'

Image

I dont understand this error. Can't I use the MessagePackFormatter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions