Service Bus - String with / are escaped with \/
See original GitHub issueHi!
I’m using Azure Service bus to communicate between a .NET program (sender) and a NodeJS program (Receiver).
I currently use noodlefrenzy’s node-amqp10 node Package which can be found here: https://github.com/noodlefrenzy/node-amqp10
However, I want to use Azure node SDK to receive the messages and I found a strange difference between the two libraries in the way they process strings.
The C# program sends a message which contains a path in this format:
{ path: "/my/awsome/path" }
When I use the needlefrenzy library, the callback gets this:
{ path: "/my/awsome/path" }
which is perfect.
When I’m using the Azure Node SDK, the callback gets this:
{ path: "\/my\/awsome\/path" }
Is there a switch I can toggle to change this behavior? How can I solve that?
I read some suggestions that I could string.replace() the \ / by / but I find this solution quite messy.
Thanks
VB
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
All right!
At least, you’re aware of this issue. I’ll deal with the string replace for now, as I only receive path from there.
VB
@vIceBerg - Please try the new sdk
npm i @azure/service-bus
. Source code and samples for the new sdk can be found here https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/servicebus/service-busIn the future, file new Service bus related issues in the new repo https://github.com/Azure/azure-sdk-for-js