Skip to content

Airbrake trying to reassign console.log debug property #1382

Open
@zachpinfold

Description

🐞 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions