Authorization issues while using event hub

Anonymous
2020-09-21T00:36:17.753+00:00

I am trying to explore the twitter analysis example on the learn page: https://learn.microsoft.com/en-us/azure/stream-analytics/stream-analytics-twitter-sentiment-analysis-trends

running into this issue while running : dotnet run command from terminal

Sending data eventhub : socialtwitter-eh PartitionCount = 2
System.AggregateException: One or more errors occurred. (The remote server returned an error: (401) Authorization Required.) ---> System.Net.WebException: The remote server returned an error: (401) Authorization Required.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebRequest.<>c.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
555 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Marta Villagrán Prieto 1 Reputation point
    2021-04-29T15:52:48.893+00:00

    Im having the same issue

    Sending data eventhub : socialtwitter-eh PartitionCount = 1
    System.AggregateException: One or more errors occurred. (The remote server returned an error: (401) Authorization Required.)

    0 comments No comments

  2. Juoyu Liao 0 Reputation points
    2023-01-31T13:54:21.2266667+00:00

    has anyone got the solution?

    0 comments No comments