This project has moved and is read-only. For the latest updates, please go here.

Azure for Python, GetBody<string>() gives exception, any idea?

Mar 7, 2013 at 5:19 PM
I can send and receive messages from C# code, on the receive side, I use code like below
  BrokeredMessage message =  client.Receive(TimeSpan.FromSeconds(5));
  string messagebody = message.GetBody<string>();
But when I send message from python code like below

from azure.servicebus import *
bus_service = ServiceBusService(service_namespace='???',account_key='???',issuer='owner')
msg = Message('test body', custom_properties={'itemid':10000,'itemtype':'s'})

I can use the below python code to receive it

msg = bus_service.receive_queue_message('lliftvbup')

But when I tried to receive the message with the code in C#, I get exception on GetBody<string>()

The exception is "There was an error deserializing the object of type System.String. The input source is not correctly formatted."

Any idea? The message body is just simple text