lapin icon indicating copy to clipboard operation
lapin copied to clipboard

Generic INTERNALERROR where using ShortString in headers

Open nappa85 opened this issue 2 years ago • 0 comments

When publishing to rabbit, if I use a ShortString as header, I get this error log:

ERROR lapin::channel: Connection closed on channel 0 by 0:0 => AMQPError { kind: Hard(INTERNALERROR), message: ShortString("INTERNAL_ERROR") } => INTERNAL_ERROR    
ERROR lapin::channels: Connection error: protocol error: AMQP hard error: INTERNAL-ERROR: INTERNAL_ERROR

I can imagine this is a RabbitMQ problem and not a real Lapin problem, is it possible to hard deprecate ShortString (since it's commented as deprecated) if they're unused, or maybe add a check on headers to avoid ShortString usage there? Last resort is to improve error reporting, but I can image that if rabbit replies an error without context you can't do nothing about it.

nappa85 avatar Mar 01 '22 16:03 nappa85