[ 
https://issues.apache.org/jira/browse/PROTON-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17019698#comment-17019698
 ] 

Andrew Stitcher commented on PROTON-2129:
-----------------------------------------

Just to amplify what [~robbie] said a bit more: The Python binding does not do 
any JSON decoding of the contents of AMQP messages.

The Message.decode method only tries to decode the message envelope and not the 
message contents (body) at all. If you are getting an exception then the 
message itself is likely to be illegal.

What client are you using to send the message? I'm guessing that whichever 
client you are using has some bugs in the area of producing messages.

If the message body has a content type of *data* then the body will already be 
interpreted as raw bytes.

> Allow message content other than JSON
> -------------------------------------
>
>                 Key: PROTON-2129
>                 URL: https://issues.apache.org/jira/browse/PROTON-2129
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: python-binding
>    Affects Versions: proton-c-0.29.0
>            Reporter: Guionardo Furlan
>            Priority: Critical
>
> When a message is sent to a queue or topic, 
> *IncomingMessageHandler*._on_delivery_ decodes the message content 
> considering its format is JSON.
> But in situations where the message is not JSON, the *Message*._decode_ 
> method raises an exception.
> My suggestion is to be able, by parameter, to allow a message not to be 
> decoded so that its raw content is returned.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to