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

2.1.6 Breaking changes #829

Closed
papabytes opened this issue Aug 27, 2021 · 5 comments · Fixed by #834
Closed

2.1.6 Breaking changes #829

papabytes opened this issue Aug 27, 2021 · 5 comments · Fixed by #834

Comments

@papabytes
Copy link

Hi everyone,

We recently updated from 2.1.5 to 2.1.6 and, without changing any source code we started seeing the following error on the startup of our application:

ApplicationInsights:The URL object is failed to create. [ TypeError [ERR_INVALID_URL]: Invalid URL: Azure.KeyVault.Secrets.SecretClient.getSecret at onParseError (internal/url.js:279:9) at new URL (internal/url.js:355:5) at NodeClient.TelemetryClient.trackDependency (/app/node_modules/applicationinsights/out/Library/TelemetryClient.js:106:36) at /app/node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/azure-coretracing.sub.js:29:28 at Array.forEach (<anonymous>) at /app/node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/azure-coretracing.sub.js:22:21 at Function.CorrelationContextManager.runWithContext (/app/node_modules/applicationinsights/out/AutoCollection/CorrelationContextManager.js:65:20) at OpenTelemetryScopeManagerWrapper.with (/app/node_modules/applicationinsights/out/AutoCollection/AsyncHooksScopeManager.js:39:70) at subscriber (/app/node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/azure-coretracing.sub.js:21:56) at /app/node_modules/diagnostic-channel/dist/src/channel.js:44:25 { input: 'Azure.KeyVault.Secrets.SecretClient.getSecret', code: 'ERR_INVALID_URL' } ]

Reverting back to 2.1.5 was our approach since we could not figure out what to change on our end.

Thank you for your time.

@oddeirik
Copy link

Also seeing this after upgrading to 2.1.6, but for @azure/storage-blob related operations:

ApplicationInsights:The URL object is failed to create. [
  TypeError [ERR_INVALID_URL]: Invalid URL: Azure.Storage.Blob.BlobClient-getProperties
      at onParseError (internal/url.js:258:9)
      at new URL (internal/url.js:334:5)
      at NodeClient.TelemetryClient.trackDependency (/home/site/wwwroot/node_modules/applicationinsights/out/Library/TelemetryClient.js:106:36)
      at /home/site/wwwroot/node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/azure-coretracing.sub.js:29:28
      at Array.forEach (<anonymous>)
      at /home/site/wwwroot/node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/azure-coretracing.sub.js:22:21
      at clsBind (/home/site/wwwroot/node_modules/cls-hooked/context.js:172:17)
      at Function.CorrelationContextManager.runWithContext (/home/site/wwwroot/node_modules/applicationinsights/out/AutoCollection/CorrelationContextManager.js:62:131)
      at OpenTelemetryScopeManagerWrapper.with (/home/site/wwwroot/node_modules/applicationinsights/out/AutoCollection/AsyncHooksScopeManager.js:39:70)
      at subscriber (/home/site/wwwroot/node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/azure-coretracing.sub.js:21:56) {
    input: 'Azure.Storage.Blob.BlobClient-getProperties',
    code: 'ERR_INVALID_URL'
  }
]

@hectorhdzg
Copy link
Member

hectorhdzg commented Aug 27, 2021

@papabytes can you add more details about specific version of azure KeyVault package you are using?, can you try with latest version of the package and validate if the error persist?
@oddeirik can you share and try the same for azure blob package?
This must be a internal log we add in Application Insights and not an actual exception not being handled, please confirm if this is affecting the App behavior in any way

@oddeirik
Copy link

This is using version 12.7.0 of the @azure/storage-blob package, which is currently the latest available.

@thebenlamm
Copy link

thebenlamm commented Sep 1, 2021

Same on Node:v14.17.6

"dependencies": {
   "@azure/service-bus": "7.3.0",
   "@azure/storage-blob": "12.7.0",
   "applicationinsights": "2.1.6",
}

and can confirm that reverting back to 2.1.5 fixes the problem.

@josendf-basetis
Copy link

Same issue here:

Node: v14.17.5

OS: Windows and Linux

    "dependencies": {
        "@azure/storage-blob": "12.7.0",
        "@azure/storage-queue": "12.6.0",
        "applicationinsights": "2.1.6"
    }
ApplicationInsights:The URL object is failed to create. [
  TypeError [ERR_INVALID_URL]: Invalid URL: Azure.Storage.Queue.QueueClient-receiveMessages
      at onParseError (internal/url.js:279:9)
      at new URL (internal/url.js:355:5)
      at NodeClient.TelemetryClient.trackDependency (server\node_modules\applicationinsights\out\Library\TelemetryClient.js:106:36)
      at server\node_modules\applicationinsights\out\AutoCollection\diagnostic-channel\azure-coretracing.sub.js:29:28
      at Array.forEach (<anonymous>)
      at server\node_modules\applicationinsights\out\AutoCollection\diagnostic-channel\azure-coretracing.sub.js:22:21
      at clsBind (server\node_modules\cls-hooked\context.js:172:17)
      at Function.CorrelationContextManager.runWithContext (server\node_modules\applicationinsights\out\AutoCollection\CorrelationContextManager.js:62:131)
      at OpenTelemetryScopeManagerWrapper.with (server\node_modules\applicationinsights\out\AutoCollection\AsyncHooksScopeManager.js:39:70)
      at subscriber server\node_modules\applicationinsights\out\AutoCollection\diagnostic-channel\azure-coretracing.sub.js:21:56)
      at server\node_modules\diagnostic-channel\dist\src\channel.js:44:25
      at Array.forEach (<anonymous>)
      at ContextPreservingEventEmitter.publish (server\node_modules\diagnostic-channel\dist\src\channel.js:40:23)
      at Span.span.end (server\node_modules\diagnostic-channel-publishers\dist\src\azure-coretracing.pub.js:62:62)
      at QueueClient.receiveMessages (server\node_modules\@azure\storage-queue\dist\index.js:5107:18)
      at processTicksAndRejections (internal/process/task_queues.js:95:5) {
    input: 'Azure.Storage.Queue.QueueClient-receiveMessages',
    code: 'ERR_INVALID_URL'
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants