Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely long delays on errors with a long message #76

Open
rgehan opened this issue Oct 23, 2019 · 4 comments
Open

Extremely long delays on errors with a long message #76

rgehan opened this issue Oct 23, 2019 · 4 comments

Comments

@rgehan
Copy link

rgehan commented Oct 23, 2019

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 (which includes the message).

@niemyjski
Copy link
Collaborator

niemyjski commented Oct 23, 2019 via email

@rgehan
Copy link
Author

rgehan commented Oct 23, 2019

Couldn't we remove the "message" from the "stacktrace" so as to only keep the actual stack trace part of it?

This is a naive suggestion, as I don't know all the possible formats or use cases.

Like running the regexp on stack.slice(ex.message.length)

@niemyjski
Copy link
Collaborator

niemyjski commented Oct 23, 2019 via email

@niemyjski
Copy link
Collaborator

can you submit apr for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants