Skip to content
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

Cannot connect to an Event Hub with only Listen claim #718

Open
changov opened this issue Apr 9, 2023 · 1 comment
Open

Cannot connect to an Event Hub with only Listen claim #718

changov opened this issue Apr 9, 2023 · 1 comment
Labels

Comments

@changov
Copy link

changov commented Apr 9, 2023

I'm providing a connection string from an EH shared access policy that allows only Listen permission/claim. This is the connection error: "Manage,EntityRead claims required for this operation"

<20:33:04> The application is now connected to the sb://xxxx.servicebus.windows.net/ service bus namespace.
<20:33:04> MessagingFactory successfully created.
<20:33:04> Failed to retrieve EventHub entities. Exception: System.UnauthorizedAccessException: The remote server returned an error: (401) Unauthorized. claim is empty or token is invalid. TrackingId:70d90e81-30e0-4b77-a748-68584d47d64c_G9S2, SystemTracker:xxxx.servicebus.windows.net:$Resources/EventHubs, Timestamp:2023-04-09T03:33:04 ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

              at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

              at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

<20:33:05> Failed to retrieve Service Bus queues. Exception: System.UnauthorizedAccessException: The remote server returned an error: (401) Unauthorized. Manage,EntityRead claims required for this operation. TrackingId:a34e32c3-9b08-43bf-909c-a38462af1855_G9S2, SystemTracker:xxxx.servicebus.windows.net:insights-logs-partitionkeystatistics, Timestamp:2023-04-09T03:33:05 ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

@soychrisdev
Copy link

I have the same issue with my EH, can be an error about of EH updated SAS policies?

@stale stale bot added the wontfix label Jul 14, 2023
Repository owner deleted a comment from stale bot Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants