question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service Bus - String with / are escaped with \/

See original GitHub issue

Hi!

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:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vIceBergcommented, Jul 10, 2018

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

0reactions
amarzaverycommented, Apr 27, 2019

@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-bus

In the future, file new Service bus related issues in the new repo https://github.com/Azure/azure-sdk-for-js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Service Bus Subscription Rule SQL Filter syntax
It's used as an escape character for the LIKE operator. For example, property LIKE 'ABC\%' ESCAPE '\' matches ABC% rather than a string...
Read more >
Azure Service Bus Queue gives control characters in fetched ...
ServiceBus.Messaging clients sending BrokeredMessage Xml content as <string> and I want to receive using the latest Microsoft.Azure.
Read more >
How to escape special xml characters in ALSB — oracle-tech
Using fn-bea:serialize i got xml string as ... Only thing i noticed was the service bus will escape back the > to >...
Read more >
Azure Service Bus and its Complete Overview | Serverless360
Service Bus queue connection string will play a vital role to send any message to service bus queue. Azure.Messaging.ServiceBus namespace should be imported ......
Read more >
D-Bus Specification - Freedesktop.org
Define the jargon terms service activation and auto-starting more clearly. ... A simple string compare determines whether two type signatures are equivalent ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found