Protobufs with web stomp

130 views
Skip to first unread message

pantonis

unread,
Jul 15, 2016, 5:31:35 AM7/15/16
to rabbitmq-users
We have a problem with working with Google Protobufs.
Publisher is a .NET service and serializes the body using google protobufs.
Subscriber is a javascript which connect to rabbitmq using the web-stomp plugin (websockets).
Javascript subscriber cannot decode the message and gives following error:

"EXCEPTION: Error: Illegal character code: 10"

Cannot find anything about this error on google.

Thanks in advance.

Karl Nilsson

unread,
Jul 15, 2016, 6:04:19 AM7/15/16
to rabbitm...@googlegroups.com
Hi,

It sounds like your javascript application may be trying to decode the protobuf body as json. I'd suggest you take first take RabbitMQ out of the equation and serialize some data using the .NET code to file then try to deserialize that data using javascript to make sure this works.

Cheers
Karl

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Karl Nilsson

Staff Software Engineer, Pivotal/RabbitMQ

pantonis

unread,
Aug 8, 2016, 8:21:56 AM8/8/16
to rabbitmq-users
I tried your suggestion.

With Http request it works perfectly fine.
When I use plain websockets and add the socket type to arraybuffer I still get the error.

Illegal wire type in unknown group 12: 7 I google it and I got the following:

From what I read here it stated that data can be corrupted if they are read as a string

pantonis

unread,
Aug 8, 2016, 8:27:59 AM8/8/16
to rabbitmq-users
When I said plain websockets I meant to connect to the rabbitmq exchange.
Reply all
Reply to author
Forward
0 new messages