-
Notifications
You must be signed in to change notification settings - Fork 167
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
Comments
Perhaps we only run the Regex if the string length is reasonable?
…Sent from my iPhone
On Oct 23, 2019, at 9:54 AM, Renan GEHAN ***@***.***> wrote:
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.
When calling Sentry.captureException(error), I notice delays around ~90s.
The issue seems to originate from a RegExp which is ran on each line of the stacktrace (which includes the message).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
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 |
I'd think we would always want it because sometimes that's the only thing
we have. I'm not sure if we should supply a callback to modify it or limit
the regex. I think we may want to optimize the regex and limit the string
length of what we are parsing?
…On Wed, Oct 23, 2019 at 1:05 PM Renan GEHAN ***@***.***> wrote:
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=AAHZFI2ONF3CWHFN4CVWVRTQQCHAJA5CNFSM4JEC4AM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECCLDFY#issuecomment-545567127>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHZFI5ROMCLXJ37HRUM5CTQQCHAJANCNFSM4JEC4AMQ>
.
|
can you submit apr for this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).
The text was updated successfully, but these errors were encountered: