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

Unable to get Telemetry for device #573

Closed
jamesyun7 opened this issue Nov 9, 2022 · 16 comments
Closed

Unable to get Telemetry for device #573

jamesyun7 opened this issue Nov 9, 2022 · 16 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@jamesyun7
Copy link

jamesyun7 commented Nov 9, 2022

Describe the bug
I have same issue on new release v0.15.1.0 as previous version to monitor device telemetry message.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Telemetry' of IoT Edge device in Azure IoT Explorer v0.15.1.0
  2. Click on 'Start'
  3. See error of "Failed to start monitoring device telemetry: Error: "Attempted to perform an unauthorized operation."

Expected behavior
Device Explorer can successfully monitor my device telemetry.
image

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11 Enterprise
  • OS Version: 22H2
  • App version 0.15.1.0

image

@jamesyun7 jamesyun7 added bug Something isn't working needs review Review required by team member labels Nov 9, 2022
@YingXue
Copy link
Member

YingXue commented Nov 9, 2022

Hi @JamesYun
Please make sure you are using the iot hub connection string with enough permission to monitor device telemetry. It is not a custom error message but was directly surfaced from the service.
Device Explorer use different tech/library underneath.
If your connection string does have all the permissions, I will create a ticket towards the event hub library that we use.

@YingXue YingXue added question Further information is requested In progress and removed needs review Review required by team member labels Nov 9, 2022
@zhen9910
Copy link

I got the same issue today. My iothub works fine with IoT Explorer two weeks before, but I find I cannot get device telemetry of this iothub using IoT Explorer now.

I first used Iot Explorer 0.14.13, then tried 0.15.1, but both didn't work.

@YingXue
Copy link
Member

YingXue commented Nov 11, 2022

Syned with @zhen9910 offline, and we found that a newly created iot hub works fine.
With some investigation, the error resulted from event hub sdk: MessagingError [UnauthorizedError]: InvalidSignature: The token has an invalid signature.
However, we don't have a consistent repro as newly created hub does not have this issue, and thus we cannot provide enough proof if we try to file a bug against event hub team. It can also be an iot hub service issue between its underlying connection to event hub.

Either way, I will leave this bug open, and please update us if you run into this issue again, and we can have a better idea which service team should we contact.

@YingXue YingXue added the dependencies Pull requests that update a dependency file label Nov 11, 2022
@lucas-suntao
Copy link

I have met the same problem.Yesterday,it worked well ,but today it shows"Failed to start monitoring device telemetry: Error: "Attempted to perform an unauthorized operation."."Do you have method to solve the problem?

@YingXue
Copy link
Member

YingXue commented Nov 15, 2022

Hi, we are in the middle of updating the event hub sdk. Whiling testing @zhen9910's connection string, we found that the newer version of the sdk did not throw the same error. The event hub team made a fundemental change after a certain version, and we are incorporating the changes.
The change is relatively big, please give us a few more days and we will update the issue once the release is out.
Thanks.

@YingXue YingXue mentioned this issue Nov 16, 2022
4 tasks
@russom
Copy link

russom commented Nov 18, 2022

Hi all - I also ran in the same issue a few days ago. Looking forward to an update

@russom
Copy link

russom commented Nov 21, 2022

Good day all - hoping to provide useful info on this, I can say that I still run into the issue when connecting to an IoT Hub in my reference location location (France Central). However, I do not have the issue when connecting to an IoT Hub in East US, so there seem to be a dependency on the location.
Hopefully we will have a common closure of the issue soon.
Thanks

@YingXue
Copy link
Member

YingXue commented Nov 21, 2022

We made a new release with updated Event Hub SDK:
https://github.com/Azure/azure-iot-explorer/releases/tag/v0.15.2
We only got direct access to one of the customer's connection string and verified that the new version fixed issue. As we don't have much data, we will leave the issue open for a while for folks to report update.

@jamesyun7
Copy link
Author

jamesyun7 commented Nov 22, 2022

New release solves this issue. Thanks a lot @YingXue :)

image

@ThomasNauwelaerts
Copy link

Issue solved for me, North Europe location

@aleciav
Copy link

aleciav commented Nov 22, 2022

Issue solved for me as well. South Europe area

@russom
Copy link

russom commented Nov 22, 2022

Confirmed - issue solved. Thanks a lot!

image

@wvangeem
Copy link

Issue solved for me (West-Europe).
Thanks!

@YingXue
Copy link
Member

YingXue commented Nov 22, 2022

Thank you folks for the update! We will close the issue.

@YingXue YingXue closed this as completed Nov 22, 2022
@YingXue YingXue removed In progress question Further information is requested labels Nov 22, 2022
@lucas-suntao
Copy link

lucas-suntao commented Nov 25, 2022

Thank you! Issue solved for me too.(china location)

@afroewis
Copy link

This still seems to be an issue for the location switzerlandnorth.

After failing to view telemetry of my IoT hub that is bound to a resource group in switzerlandnorth, I created a new hub and assigned to a resource group in useast and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

9 participants