Stand-With-Crypto / swc-web

Stand With Crypto's codebase, open sourced for community collaboration. If you care about crypto, it's time to prove it.
https://www.standwithcrypto.org/
Apache License 2.0
20 stars 4 forks source link

TypeError: JSON.stringify cannot serialize cyclic structures. #1228

Open sentry-io[bot] opened 4 weeks ago

sentry-io[bot] commented 4 weeks ago

Sentry Issue: PROD-SWC-WEB-110

TypeError: JSON.stringify cannot serialize cyclic structures.
  at stringify ([native code])
  at sentryWrapped (./node_modules/@sentry/browser/build/npm/esm/helpers.js:90:1)
mhamendes commented 4 weeks ago

We should probably start using safeStringify instead of JSON.stringify on our codebase.

Using a logger like pino instead of the default console could be a good way to improve our logs as well.

sentry-io[bot] commented 4 weeks ago

Sentry Issue: PROD-SWC-WEB-10Y