csnover / csnover/TraceKit

Extremely long delays on errors with a long message

Open
#76 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
162
PR merge metrics
No merged PRs in 30d

Description

I'm using mobx-state-tree, which generates very long error messages, when trying to instantiate a model with data that doesn't match the defined schema.

It appends a full dump of the the data to the message, among other things.

I've seen it generate a 300kB message from a 10kB JSON payload.

The issue seems to originate from a [RegExp which is ran on each line of the stacktrace](https://github.com/csnover/TraceKit/blob/master/tracekit.js#L771) (which includes the message).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.