-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Service Bus: Unknown error after calling GetNamespaceInfo #21629
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @axisc. Issue DetailsDescribe the bug Expected behavior Actual behavior (include Exception or Stack Trace) To Reproduce
Environment:
|
//cc: @shankarsama |
Thank you for your feedback. Tagging and routing to the team best able to assist. |
@eddynaka Apologies for the late response. This is a parsing error that we cannot replicate without knowing the input to the GetNamespaceInfoAsync method. Would it be possible for you to share that? Also, please note that the Microsoft.Azure.ServiceBus package is now deprecated. A newer package Azure.Messaging.ServiceBus is available as of November 2020. While the older package will continue to receive critical bug fixes, we strongly encourage you to upgrade. Read the getting started guide and migration guide for more details. In the new package, the corresponding method to use will be ServiceBusAdministrationClient.GetNamespacePropertiesAsync. Please also share if you are seeing a similar issue when using the new package |
Hi @ramya-rao-a , I just changed and now I receive this: and the inner exception:
|
@eddynaka Do you mean to say that you are now using the new package i.e. Azure.Messaging.ServiceBus? |
Hi @ramya-rao-a , i changed to the new package and even with that, I still see the unknown error. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shankarsama, @DorothySun216. Issue DetailsDescribe the bug Expected behavior Actual behavior (include Exception or Stack Trace) To Reproduce
Environment:
|
Hi @eddynaka, |
Hi @JoshLove-msft , below the snippet: var serviceBusOptions = new ServiceBusAdministrationClientOptions();
serviceBusOptions.Retry.MaxRetries = (retry == bool.TrueString) ? 3 : 0;
var client = new ServiceBusAdministrationClient(serviceBusConnectionString, serviceBusOptions);
NamespaceProperties ni = await client.GetNamespacePropertiesAsync(); |
Thanks, this code works when I test it. Do other operations using the admin client work? |
Hi @JoshLove-msft , this looks like happens when I incorrectly use a notification hub, which is also a service bus. |
Hi @eddynaka, I don't think you can talk to the Notification Hub using the Service Bus SDK. |
Hi @JoshLove-msft , since both use ServiceBus, I was expecting both to work or at least to ServiceBus generate some specific message like "u are using the wrong thing". Don't know if you have a use case for that, for accepting any kind of SB. Thanks :) |
Can you clarify what you mean when you say that both use ServiceBus? |
HI @JoshLove-msft , Below, a connection string from NotificationHub Resource:
Below, a connection string from a ServiceBus Resource:
So, I imagined, "hey, both have the same connection string, would that work?" :) |
Ah I see. They both share the same connection string format, due to how they are implemented on the backend, but they are separate services. The same is true for Event Hubs (it also uses the same format, but is a separate service with a separate SDK). |
Hi @eddynaka. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Hi @eddynaka, since you haven’t asked that we “ |
Dev search microsoft.search 2022 09 01 (Azure#21964) * Adds base for updating Microsoft.Search from version stable/2020-08-01 to version 2022-09-01 * Updates readme * Updates API version in new specs and examples * Add missing private endpoint connection properties (Azure#21629) * add missing private endpoint connection properties * fix errors * Adding delegated identities to data plane * Revert "Adding delegated identities to data plane" This reverts commit def1bd3ba296458c19b8f04cb1a7a5b800d002f9. * Fix Lint ProvisioningStateValidation Error * Applying prettier changes npm run prettier -- --write Co-authored-by: Enrique Jaimes <[email protected]> * Satumkur/new api ver 20220901 (Azure#21922) * semantic updates * Add Dataplane RBAC related changes + examples * Prettier fixes * Fix LintDiff errors * Update SearchUpdateServiceDisableLocalAuth.json update erroneous api version param Co-authored-by: Samartha Tumkur Vani <[email protected]> Co-authored-by: Enrique Jaimes <[email protected]> * Add CMK Enforcement policy support (Azure#21996) * Add CMK Enforcement policy support * Update api-version * Remove unused properties * Remove bypass property Co-authored-by: satumkurmsft <[email protected]> Co-authored-by: Matt <[email protected]> Co-authored-by: Samartha Tumkur Vani <[email protected]>
Describe the bug
When I call
client.GetNamespaceInfoAsync
it is returning an exception. The message shows an "unknown error".Expected behavior
Throw an error that is not unknown or successful.
Actual behavior (include Exception or Stack Trace)
Returning unknown error.
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
Environment:
dotnet --info
output for .NET Core projects): [e.g. Azure AppService or Windows 10 .NET Framework 4.8] netstandard2.1, called by netcoreapp3.1The text was updated successfully, but these errors were encountered: