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

TypeError: Failed to construct 'URL': Invalid URL #443

Closed
patricklafrance opened this issue Jan 16, 2025 · 2 comments · Fixed by #444
Closed

TypeError: Failed to construct 'URL': Invalid URL #443

patricklafrance opened this issue Jan 16, 2025 · 2 comments · Fixed by #444
Assignees
Labels
type: bug Something isn't working

Comments

@patricklafrance
Copy link

patricklafrance commented Jan 16, 2025

Versions

0.11.0

According to the release note, 0.11.0 is in pre-release but it's tagged as the latest version on the NPM registry. Therefore we automatically updated to that version which seem to include a bug.

Steps to reproduce

Create a new HoneycombWebSDK instance without an endpoint option.

Additional context

It fails at the following line: https://github.com/honeycombio/honeycomb-opentelemetry-web/blob/main/packages/honeycomb-opentelemetry-web/src/console-trace-link-exporter.ts#L38

Uncaught (in promise) TypeError: Failed to construct 'URL': Invalid URL
    at getUrlRoots (index.js:625:1)
    at configureConsoleTraceLinkExporter (index.js:621:1)
    at configureSpanProcessors (index.js:744:1)
    at new HoneycombWebSDK (index.js:2056:1)
    at registerHoneycombInstrumentation (chunk-KVIILPZX.js:81:1)
    at registerHoneycombInstrumentation (registerHoneycombInstrumentation.ts:494:1)
    at index.tsx:21:1
    at __webpack_require__.a (sharedDependenciesResolutionPlugin.js:145:1)
    at ./src/index.tsx (i18next.ts:23:1)
    at __webpack_require__ (sharedDependenciesResolutionPlugin.js:145:1)

Reverting to version 0.10.0 fix the issue.

@patricklafrance patricklafrance added the type: bug Something isn't working label Jan 16, 2025
@wolfgangcodes wolfgangcodes self-assigned this Jan 16, 2025
@wolfgangcodes
Copy link
Contributor

Thanks for reporting @patricklafrance, we're looking into it!

@patricklafrance
Copy link
Author

Hey @wolfgangcodes, thanks for fixing the issue.

I was wondering, when do you expect to release the fix? It's currently breaking for anyone who install the latest version of @honeycombio/opentelemetry-web.

Thank you,

Patrick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants