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

Airbrake trying to reassign console.log debug property #1382

Open
zachpinfold opened this issue Nov 6, 2024 · 0 comments
Open

Airbrake trying to reassign console.log debug property #1382

zachpinfold opened this issue Nov 6, 2024 · 0 comments
Labels

Comments

@zachpinfold
Copy link

🐞 bug report

Affected Package

The issue is caused by package @airbrake/browser

Is this a regression?

N/A

Description

We are seeing the following JS error pull through to our Airbrake dashboard, it's very common - occurring every hour or so:

TypeError: Cannot assign to read only property 'debug' of object '#<Object>'

This only seems to occur on our paid traffic links, eg: https://www.papier.com/stationery/calendar-year-diaries/?utm_medium=Paid_Display_Retargeting&utm_source=Conversant&utm_campaign=UK[DISP[ALL_PROD[RET]:Conversant

The trace for the error comes from this file: @airbrake/browser/esm/instrumentation/console.js:21

And the line is console[m] = newFn;

from what I have read it would be possible to do this using Object.defineProperty but we're not sure what other implications that would have.

🔬 Minimal Reproduction

We find it very difficult to reproduce this ourselves, which is the problem in itself, the only clue we have to run with is that this is only occurring with customers who come to our website via the paid traffic links (like above)

🔥 Exception or Error

TypeError: Cannot assign to read only property 'debug' of object '#<Object>'

🌍 Your Environment

@airbrake/* version:
2.1.8

Anything else relevant?
N/A

@zachpinfold zachpinfold added the bug label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant