You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deeply Nested objects aren't being serialised #1964
I've run into the same problem and can confirm that adding normalizeDepth resolves the problem. I also double checked if integrations: [new ExtraErrorData({ depth: 10 })], is necessary at all and it turns out it is not, removing it results in the same output on Sentry.
The option was add in #2404 (shipped in v5.12.0), but I could not find any documentation
I have an issue that might be related and that I can not get to work. Just to be sure, [new ExtraErrorData({ depth: 10 })] is supposed to modify ADDITIONAL DATA field depth in the error report right ?
If so, I am using Sentry 5.22.1 and it doesn't seems to work:
Activity
HazAT commentedon Mar 28, 2019
You should be able to define the depth yourself:
We reduced the limit drastically since it caused many problems for users.
Hope this helps.
drwharris commentedon Mar 28, 2019
@HazAT
Where is this documented? And is this specific to the JS library?
HazAT commentedon Mar 28, 2019
TBH, this is sadly poorly documented and should be here:
https://docs.sentry.io/platforms/javascript/default-integrations/#extraerrordata
I will write this down to improve, and yes, this is JS specific.
drwharris commentedon Apr 1, 2019
OK Thank you.
drwharris commentedon Jun 11, 2019
Sorry to come back to this but I have just updated to 5.4.0 and its now erroring with:
Property 'ExtraErrorData' does not exist on type '{ Console: typeof Console; Http: typeof Http; OnUncaughtException: typeof OnUncaughtException; OnUnhandledRejection: typeof OnUnhandledRejection; LinkedErrors: typeof LinkedErrors; Modules: typeof Modules; FunctionToString: typeof FunctionToString; InboundFilters: typeof InboundFilters; }'.
21 integrations: [new Sentry.Integrations.ExtraErrorData({ depth: 10 })]
kamilogorek commentedon Jun 12, 2019
@drwharris
drwharris commentedon Apr 9, 2020
This seems to have regressed. I have this:
And I get this
mcastets commentedon May 7, 2020
You need to use the undocumented new param
normalizeDepthand set it tonormalizeDepth: depth + 1:In your example:
See also: #2404
gr2m commentedon Sep 7, 2020
I've run into the same problem and can confirm that adding
normalizeDepthresolves the problem. I also double checked ifintegrations: [new ExtraErrorData({ depth: 10 })],is necessary at all and it turns out it is not, removing it results in the same output on Sentry.The option was add in #2404 (shipped in v5.12.0), but I could not find any documentation
kamilogorek commentedon Sep 14, 2020
We are aware of this issue - #2539 (comment)
It will be fixed in v6, as it's breaking change.
FabienCH commentedon Sep 30, 2020
Hello,
I have an issue that might be related and that I can not get to work. Just to be sure,
[new ExtraErrorData({ depth: 10 })]is supposed to modifyADDITIONAL DATAfield depth in the error report right ?If so, I am using Sentry 5.22.1 and it doesn't seems to work:
And the additional data
__serialized__object looks loke this:{ error: { errors: { Views: [Array] }, status: 400, ... }, ... }kamilogorek commentedon Sep 30, 2020
I just verified it locally and it works just fine for me:
FabienCH commentedon Sep 30, 2020
Ok, thank you for your reply, I'll try to figure out where my problem comes from.
lcaballero99 commentedon Sep 15, 2021
I work only with normalizeDepth: 11
Sentry.init({ dsn: process.env.SENTRYDSN, debug: true, environment: process.env.NODE_ENV, enabled: process.env.SENTRY === 'true', logLevel: 1, integrations: [ new Sentry.Integrations.Http({ tracing: true }), ], normalizeDepth: 11, });lobsterkatie commentedon Feb 11, 2022
Duplicate of #2539
captbilard commentedon Aug 21, 2023
Same here, adding only normalizeDepth worked for me