添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

With the new azure digital twin explorer, when I open the explorer, I am receiving this error. 40036-image.png I tried to login with my id (az login) after providing the necessary access "Azure Digital Twins Data Owner". Also I tried using managed identity still I am receiving the error. Error which I get in the console shown below.

Hello @Harish , Thanks for reaching out to us!
Could you please let us know the exact document or tutorial link which you have followed?

Thanks
Satish.

Hello @Harish ,

We verified the ADT Explorer tool and were able to repro the issue when the user is not properly authenticated as per the instructions.

Below you can find the repro and resolution steps.

Reference link

As of 10/30, we have changed authentication in adt-explorer. Adt-explorer will now pick up your login from az login, VS/VS Code, or environment variables. You only need to provide the service URL to connect. The simplest way to login is to run az login at some point in a command prompt before running adt-explorer (does not have to be the same command prompt). See below for more information.

Repro of the issue: When we do not run the 'az login' command the authentication fails.

Resolution:

  • Please close all browser windows.
  • Please run the az login command from a separate command-line-->which will open a new browser window and allow the registered user to log in-->Finally close the browser window. Please note that the user should have the right permissions .
  • Now run the command-line statement 'npm start' from the ADT Explorer application folder , which will open the browser loading http://localhost:3000/
  • Continue with uploading models and importing graphs as per the instructions. 40162-image.png
  • Please make sure the user has the right access permissions.

    Please let us know if you need further help with this matter.

    Thank you,

    Satish.

    Hello @Harish , Sorry for the inconvenience caused.

    May I know the URL of the site from where you have downloaded the older version of the ADT Explorer source code?

    Thank you,
    Satish.

    Hello. I've just (yesterday) downloaded the latest ADT Explorer (v.0.1.0) and experience the exact same error message as described in the first post. 74873-authentication-error-in-development-build.png

    I do this exercise while following the Microsoft Learning path for ADT: https://learn.microsoft.com/en-us/learn/modules/develop-with-azure-digital-twins/build-azure-digital-twins-graph-for-chocolate-factory/7-exercise-build-digital-twin-graph

    I have verified my az login to work, by using the az dt list CLI command. Most grateful for any help to sort this out.

    Thanks,

    I was meaning to make an update about this a couple of days ago. You just gave me the the proper incitement!

    I was finally able to get things working. Checked again right now to confirm - still works.

    I believe this post actually did the trick: https://github.com/Azure-Samples/digital-twins-explorer/issues/78

    My current environment:

  • npm v7.6.2 (don't know if this actually had an impact, but certainly removed a lot of errors during npm install)
  • ADT Explorer from master branch as of march 11.
  • modified package.json to use @azure/identity version 1.2.0-beta.2 as suggested in the referred thread.
  • My suggestion is to change packgage.json accordingly, run npm install all over again and give it try. You may also want to update npm to latest version.