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

[Bug]: Uncaught TypeError: Converting circular structure to JSON #1203

Open
albertoderodrigo opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@albertoderodrigo
Copy link

What happened?

When we open the console on our app we frequently see the error (see relevant logs) when your sdk calls to logMethodCall on the operations OperationCache.enqueue.

This is an screenshot of the content of the arguments:

Screenshot 2024-10-14 at 07 54 51

The OneSignal version is 160203

What browsers are you seeing the problem on?

Chrome (Chromium)

What operating system are you running?

macos Sequoia 15.0.1

Steps to reproduce?

Open the console

What did you expect to happen?

Nothing

Relevant log output

Uncaught TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'j'
    |     property '_zoneDelegate' -> object with constructor '_'
    --- property '_zone' closes the circle
    at JSON.stringify (<anonymous>)
    at eval (eval at logMethodCall (OneSignalSDK.page.es6.js?v=160203:1:261990), <anonymous>:1:6)
    at d.logMethodCall (OneSignalSDK.page.es6.js?v=160203:1:261990)
    at g (OneSignalSDK.page.es6.js?v=160203:1:264019)
    at $i.enqueue (OneSignalSDK.page.es6.js?v=160203:1:205036)
    at Qi.<anonymous> (OneSignalSDK.page.es6.js?v=160203:1:207530)
    at Generator.next (<anonymous>)
    at r (OneSignalSDK.page.es6.js?v=160203:1:267690)
    at _.invoke (polyfills.js:20:19120)
    at j.run (polyfills.js:20:14358)
    at polyfills.js:20:25537
    at _.invokeTask (polyfills.js:20:19738)
    at j.runTask (polyfills.js:20:15013)
    at ae (polyfills.js:20:21770)
    at y.invokeTask [as invoke] (polyfills.js:20:20823)
    at B (polyfills.js:20:4736)
    at W (polyfills.js:20:5034)
    at IDBRequest.J (polyfills.js:20:5301)
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

No branches or pull requests

1 participant