mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 01:08:32 +00:00
* fix: filter browser-extension "Object Not Found" rejection noise in Sentry * Review feedback
12 lines
504 B
JavaScript
12 lines
504 B
JavaScript
// API error codes to silence in Sentry, keyed by HTTP status code.
|
|
// These are handled by the application (e.g. forceLogoff) and are not bugs.
|
|
export const SILENCED_API_ERRORS = {
|
|
401: ['ERROR_INVALID_ACCESS_TOKEN', 'ERROR_INVALID_REFRESH_TOKEN'],
|
|
}
|
|
|
|
// Browser-extension RPC artifact that rejects a promise when its internal
|
|
// object registry can't resolve an id. Not a Baserow error.
|
|
export const SILENCED_ERROR_PATTERNS = [
|
|
/Object Not Found Matching Id:\d+, MethodName:\w+, ParamCount:\d+/,
|
|
]
|