question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when create a ApplicationInsightsManagementClient instance

See original GitHub issue

Describe the bug I can not new a ApplicationInsightsManagementClient instance(come from @azure/arm-appinsights) and AzureBotService instance (come from @azure/arm-botservice) if I only have a accessToken.

I create a TokenCredentials instance with accessToken, which is implement the ServiceClientCredentials, and try to use this as the parameter to create ApplicationInsightsManagementClient and AzureBotService, but failed. I guess it’s because the version of @azure/ms-rest-js package which is dependency in @azure/arm-appinsights and @azure/arm-botservice is out of dated.

Could anyone can update the dependency package version of @azure/arm-appinsights and @azure/arm-botservice? Or could you tell me how to create those two types of instances just by accessToken?

To Reproduce Steps to reproduce the behavior:

  1. const token = new TokenCredentials(accessToken);
  2. new ApplicationInsightsManagementClient(token ````); // error parameter.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
stevengumcommented, Oct 5, 2020

@luhan2017 @VanyLaw @changlong-liu, sorry for the delay the release request has been filed.

0reactions
ramya-rao-acommented, Jan 31, 2021

Closing this issue as both the @azure/arm-appinsights and @azure/arm-botservice have been updated appropriately

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found