-
Notifications
You must be signed in to change notification settings - Fork 252
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
@bugsnag/web-worker using cuid package which does not run in Web Workers #2017
Comments
Hi @rtymchyk |
Hi @rtymchyk We've looked into this, and can confirm we have a test that successfully sends a session: bugsnag-js/test/browser/features/web_worker.feature Lines 45 to 48 in 86e96f9
We are unaware of any other users having this problem and I have also been unable to reproduce it. If you're still encountering this, are you able to elaborate on how you are pausing and resuming your sessions? As this is a public thread, please feel free to open a ticket with us by contacting support@bugsnag.com and reference this issue. To further aid our investigation, could you also please attach code snippets/screenshots of your BugSnag configuration and any session instrumentation you are performing. |
Thanks @mclack. I am not pausing/resuming sessions at all, just a simple
But even with this config disabled, the issue persists. I'll try to collect some more information and reach out via a ticket once I have it! |
Describe the bug
Bugsnag for Web Workers appears to be using a fork of cuid package to generate IDs like for Session creation.
Inside
cuid
,navigator.mimeTypes
is accessed like this (https://github.com/bugsnag/cuid/blob/662b859fea9f546dbbb6525d687558cd46a6518a/lib/fingerprint.browser.js#L8), which seems to fail in Web Worker.Steps to reproduce
Environment
Error messages:
The text was updated successfully, but these errors were encountered: