Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
queue message encoding issue #165
I started receiving the following error within my Azure Webjobs:
After doing some debugging, it appears that the message isn't being decoded properly because it's not base64. This didn't seem to be an issue before; has something changed?
referenced this issue
Jul 9, 2016
@jamesdixon , refer to the breaking change log, originally the SDK only support a flag which indicates if the queue message should be encoded/decoded (base64 encoding). But we found that's not enough and not extensible. So we decided to introduce the encoding/decoding interface and provided some built-in encoders. For why we change the default encoding behavior from base64 encoding to XML encoding, it's because XML encoding will have smaller payload size for most scenarios. Please let me know if this makes sense.
Sorry again for the inconvenience.
@hasonmsft I tried setting the messageEncoder to null, but unfortunately when viewing the message in Azure Storage Explorer, everything appears garbled.
I also tried viewing it in the online version of Azure Storage Explorer and I get the following error:
@jamesdixon , seems Azure Storage Explorer is using the base64 encoder. I don't know if Storage Explorer will support other decoders in the future. So to make your message can be displayed correctly in the Azure Storage Explorer, you need to use