question

$$ANON_USER$$ avatar image
0 Votes"
$$ANON_USER$$ asked MartaVillagrnPrieto-4090 answered

Authorization issues while using event hub

I am trying to explore the twitter analysis example on the learn page: https://docs.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.<GetResponseAsync>b__68_2(IAsyncResult iar)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

azure-event-hubs
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello anonymous user and welcome to Microsoft Q&A.

If I understand correctly, you are having issues when starting the app which pulls tweets and pushes to event hub. The most likely cause is a typos in either the Twitter credentials or the Event Hub credentials. Can you confirm you are still having the issue? It may take a couple days for me to repro this.

Thank you.


0 Votes 0 ·

@KuldeepChitrakar-0966 Are you still facing the issue, or did you solve it on your own?
Please let me know if you still need help.

0 Votes 0 ·

@KuldeepChitrakar-0966 since I have not heard back from you, I will assume you resolved it on your own. Could you please share the resolution ehre to help the community?

0 Votes 0 ·

Nope , I still have the issue

0 Votes 0 ·

1 Answer

MartaVillagrnPrieto-4090 avatar image
0 Votes"
MartaVillagrnPrieto-4090 answered

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.)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.