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.

[BUG] Microsoft.Azure.ServiceBus is restricted to namespaces with a fully quantified domain.

See original GitHub issue

Describe the bug This is part way between a bug and a feature, so feel free to choose which.

Currently, the Microsoft.Azure.ServiceBus client mandates that the namespace endpoint includes a . in it. Therefore ensuring that only “real” domains can be used. This precludes using something that is hosted on localhost. This seems like something that shouldn’t be there as locally contacting servicebus should be ok.

Expected behavior A servicebus namespace can be specified without a . e.g. localhost

Actual behavior (include Exception or Stack Trace) An exception is thrown on startup.

To Reproduce Have a namespace that is localhost, start the client and you’ll see it fail.

Environment: All environment, there’s nothing specific here.

Notes: The line of code that does this is: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Microsoft.Azure.ServiceBus/src/ServiceBusConnectionStringBuilder.cs#L174

This restriction is not in Azure.Messaging.ServiceBus

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
martinjtcommented, Aug 25, 2021

It’s something I’m working on, @shankarsama is aware of the usecase, it’s just not something I want to share publicly yet.

Using localhost will be crucial to adoption though, and as it’s not in the Azure.Messaging.ServiceBus library, this would bring the solution to parity.

0reactions
msftbot[bot]commented, Oct 19, 2022

Hi @martinjt, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure IP firewall rules for Azure Service Bus
Navigate to your Service Bus namespace in the Azure portal. On the left menu, select Networking option under Settings. You see the Networking ......
Read more >
Azure Service Bus frequently asked questions (FAQ)
A namespace provides a scoping container for addressing Service Bus resources within your application. Creating a namespace is necessary to use Service Bus...
Read more >
Upcoming changes to IP-addresses for Azure Service Bus
If you are on Service Bus standard or cannot use service tags, we recommend using the fully qualified domain names for your specific...
Read more >
Configure virtual network service endpoints for Azure ...
Allow access to Azure Service Bus namespace from specific virtual networks ... The endpoint is restricted to Premium tier namespaces only.
Read more >
Frequently asked questions - Azure Event Hubs
A namespace is a scoping container for Event Hub/Kafka Topics. It gives you a unique FQDN. A namespace serves as an application container...
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