Skip to content

Commit

Permalink
fix: access control checks errors
Browse files Browse the repository at this point in the history
when stack is too big it exceeds file size for endpoint
  • Loading branch information
buckhalt committed Feb 29, 2024
1 parent 0498592 commit fd1893f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/ErrorReportNotifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ export default function ErrorReportNotifier({ error }: { error: Error }) {
if (initialized.current) return;
setState('loading');

// limit size of error.stack
if (error.stack && error.stack.length > 500) {
error.stack = error.stack.substring(0, 500);
}

trackEvent({
type: 'Error',
name: error.name,
Expand Down

0 comments on commit fd1893f

Please sign in to comment.