You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remix SDK invariant is not captured as Issue #5362
My project is now seeing several issues. feel free to reach out to me or look around on my account to see them. None of them have been caused by actual user related issues and seem to be the SDK.
There's some RangeError: Maximum call stack size exceeded which we should look at.
RangeError: Maximum call stack size exceeded
File "/myapp/node_modules/@sentry/src/misc.ts", line 143, col 1, in Object.addExceptionMechanism
File "/myapp/node_modules/@sentry/remix/cjs/utils/instrumentServer.js", line 45, col 17, in <anonymous>
File "/myapp/node_modules/@sentry/src/scope.ts", line 515, col 1, in <anonymous>
File "/myapp/node_modules/@sentry/src/syncpromise.ts", line 58, col 1, in new SyncPromise
File "/myapp/node_modules/@sentry/src/scope.ts", line 510, col 1, in Scope._notifyEventProcessors
File "/myapp/node_modules/@sentry/src/scope.ts", line 527, col 1, in <anonymous>
File "/myapp/node_modules/@sentry/src/syncpromise.ts", line 58, col 1, in new SyncPromise
File "/myapp/node_modules/@sentry/src/scope.ts", line 510, col 1, in Scope._notifyEventProcessors
File "/myapp/node_modules/@sentry/src/scope.ts", line 527, col 1, in <anonymous>
File "/myapp/node_modules/@sentry/src/syncpromise.ts", line 58, col 1, in new SyncPromise
There seems to be problems with adding the event processor, but not sure what's causing it 🤔
@moishinetzer thank you so much for helping us debug this and giving detailed info. We would love to send you some Sentry swag for helping us out, can we reach out through the email in your profile?
@moishinetzer thank you so much for helping us debug this and giving detailed info. We would love to send you some Sentry swag for helping us out, can we reach out through the email in your profile?
Absolutely please do! I have a question for you as well and would love to be in touch! Loving the Sentry team you guys are awesome!
In the meantime I'm going to try out the above change and update you accordingly.
locally the unhandled issue now does not appear. however since I'm not sure how to apply the changes to my deployed version, I haven't been able to check there yet.
Absolutely please do! I have a question for you as well and would love to be in touch! Loving the Sentry team you guys are awesome!
Will reach out :)
locally the unhandled issue now does not appear. however since I'm not sure how to apply the changes to my deployed version, I haven't checked there yet.
We'll cut another release of the SDK by end of day eastern timezone, hopefully that'll help you test. If this does fix the unhandled issue - we only have the Maximum call stack size exceeded to investigate. Hopefully that should be solved as well!
Interesting to note, whenever the invariant issue is triggered as shown in the initial issue, the following shows both when tested locally and deployed.
And also whenever I trigger the above error it does not get sent to sentry. Either due to it not being triggered or either due to the fact that this and the above issue are related. I'm inclined to think it's not sent as it does not show in the issue logs when I look for it after triggering it.
On a quick glance this may seem to be a similar issue to #5401
Let me know if there's any other kind of testing I can do to help this issue out!
I'm going to try test this out on the deployed version and update this comment accordingly. Fingers crossed!
Update:
After applying the above change to the deployed version the ReferenceError: name is not defined error does not show and the invariant gets sent correctly as an issue so it's the same result as local!
However the issue mentioned earlier Object.captureException still remains.
Activity
moishinetzer commentedon Jul 5, 2022
Note: As a sidepoint I am also getting every 10 seconds an actual issue with the following information:
Sentry event: issues/3402471265 (Same org as specified in issue)
/myapp/node_modules/@remix-run/server-runtime/data.jsObject.captureException{"size":0}AbhiPrasad commentedon Jul 5, 2022
Hey thanks for writing in. @onurtemizkan mind taking a look when you get some time to help triage this?
moishinetzer commentedon Jul 6, 2022
My project is now seeing several issues. feel free to reach out to me or look around on my account to see them. None of them have been caused by actual user related issues and seem to be the SDK.
AbhiPrasad commentedon Jul 6, 2022
There's some
RangeError: Maximum call stack size exceededwhich we should look at.There seems to be problems with adding the event processor, but not sure what's causing it 🤔
16 remaining items
AbhiPrasad commentedon Jul 8, 2022
@moishinetzer thank you so much for helping us debug this and giving detailed info. We would love to send you some Sentry swag for helping us out, can we reach out through the email in your profile?
moishinetzer commentedon Jul 8, 2022
Absolutely please do! I have a question for you as well and would love to be in touch! Loving the Sentry team you guys are awesome!
In the meantime I'm going to try out the above change and update you accordingly.
moishinetzer commentedon Jul 8, 2022
locally the unhandled issue now does not appear. however since I'm not sure how to apply the changes to my deployed version, I haven't been able to check there yet.
AbhiPrasad commentedon Jul 8, 2022
Will reach out :)
We'll cut another release of the SDK by end of day eastern timezone, hopefully that'll help you test. If this does fix the unhandled issue - we only have the
Maximum call stack size exceededto investigate. Hopefully that should be solved as well!AbhiPrasad commentedon Jul 8, 2022
Here's the release: https://github.com/getsentry/sentry-javascript/releases/tag/7.6.0!
moishinetzer commentedon Jul 10, 2022
Ok so here's a quick update re my project:
However for some reason the issue of
https://sentry.io/organizations/netzerorg/issues/3413500624/?query=is%3Aunresolved
has been triggering exactly every 10 seconds.
Interesting to note, whenever the invariant issue is triggered as shown in the initial issue, the following shows both when tested locally and deployed.
And also whenever I trigger the above error it does not get sent to sentry. Either due to it not being triggered or either due to the fact that this and the above issue are related. I'm inclined to think it's not sent as it does not show in the issue logs when I look for it after triggering it.
On a quick glance this may seem to be a similar issue to #5401
Let me know if there's any other kind of testing I can do to help this issue out!
moishinetzer commentedon Jul 10, 2022
Super quick update, after further research it seems that #5401 (comment) is definitely what the
ReferenceError: name is not definederror is about.After patching locally not only did the name error go away, the invariant triggers in sentry correctly!
My changes:
I'm going to try test this out on the deployed version and update this comment accordingly. Fingers crossed!
Update:
After applying the above change to the deployed version the
ReferenceError: name is not definederror does not show and the invariant gets sent correctly as an issue so it's the same result as local!However the issue mentioned earlier
Object.captureExceptionstill remains.onurtemizkan commentedon Jul 11, 2022
Thanks @moishinetzer,
So,
{size: 0}error every 10 seconds might be because of this: https://fly.io/docs/reference/configuration/#services-http_checks.Looks like another case to handle in the SDK, will get back to you.
onurtemizkan commentedon Jul 11, 2022
Update:
The source of this one is:
The redirect response is thrown every 10 seconds from the
GETrequest toroot.Opened a PR: #5405
moishinetzer commentedon Jul 11, 2022
Just tested out the latest commit and it seems that all problems mentioned in this issue beginning to end have been resolved!
I'll test out the release when it comes out and assuming all's fine I'll close the issue.
Thanks so much @AbhiPrasad @onurtemizkan for all your hard work on this. And ridiculously fast respond time! 👏
AbhiPrasad commentedon Jul 15, 2022
Fix released with
7.7.0! 🚀AbhiPrasad commentedon Jul 28, 2022
@moishinetzer I reached out through email - wanted to confirm if you had gotten it?
moishinetzer commentedon Jul 28, 2022
@AbhiPrasad yes, received! Just saw it now thanks for the bump!!