Felipe Buccioni created QPID-8437:
-------------------------------------
Summary: Python: Sends garbage binary text at start of messages
Key: QPID-8437
URL: https://issues.apache.org/jira/browse/QPID-8437
Project: Qpid
Issue Type: Bug
Components: Python Client (Wrapped)
Affects Versions: 0.30
Reporter: Felipe Buccioni
I am using `python-qpid-proton` package to send messages to an ActiveMQ
instance, when sends it shows some garbage binary text at start, like a header.
Code:
{code:java}
def on_sendable(self, event):
if event.sender.credit and not self.sent:
self.sent = True
message = Message(
id=int(self.external_send.voucher.id),
inferred=False,
body=json.dumps(OrderedDict((
("kind", kind_to_str(self.kind)),
("first_name", self.external_send.voucher.first_name),
("last_name", self.external_send.voucher.last_name),
("phone_number", self.external_send.voucher.phone_number),
("email", self.external_send.voucher.email),
("address", self.external_send.voucher.address),
("extra_address", self.external_send.voucher.extra_address),
("city", self.external_send.voucher.city),
)))
)
message.content_type = 'text/plain; charset="utf-8"'
event.sender.send(message)
{code}
And in ActiveMQ shows the following:
{code:java}
SpESs�
�4�Sw�v{"kind": "delivery", "first_name": .... json continues
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]