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
I've setup filters for rollbar.js and it does not work on production servers. I still can see new rollbar items are creating with payload data are not allowed:
constignoredCodes={401: 'Unauthorized',};newRollbar({checkIgnore: function(isUncaught,args,payload: any){const{ body }=payload;if(body?.trace?.extra){if(Object.keys(ignoredCodes).includes(`${body.trace.extra.status}`))returntrue;if(Object.values(ignoredCodes).includes(body.trace.extra.error))returntrue;}returnfalse;},})
Please can you help to find a reason why rollbar items are still creating for trace -> extra -> status equals 401
The text was updated successfully, but these errors were encountered:
The only thing I notice is the ignoredCodes key '401' is a string. If body.trace.extra.status is a number, one or the other needs to be converted for includes() to work.
I've setup filters for rollbar.js and it does not work on production servers. I still can see new rollbar items are creating with payload data are not allowed:
Please can you help to find a reason why rollbar items are still creating for trace -> extra -> status equals 401
The text was updated successfully, but these errors were encountered: