-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Handle Errors with circular references gracefully #2490
Conversation
b1a412b
to
9666875
Compare
Looking at the error in the linting build, I don't believe that I introduced this problem. @martijnwalraven / @abernix if you'd like me to take a different approach fixing this problem, I'm happy to update the code. Just let me know what I can do |
I rebased on master with hope that it would fix the linting failure in the last commit |
I figured out the issue with the linting failures. It was a problem in the |
@martijnwalraven @abernix is there anything I should change about this PR? |
@mdlavin Sorry about the radio silence, but both @abernix and myself have been preoccupied with other (but related!) projects. Although I realize circular references in errors can be a problem, it should never actually get to the point that we try to serialize these. That seems like a mistake in the current implementation. We've experimented with making some related changes on a separate branch, getting rid of |
I'm happy to hear that the problem is getting fixed and I'm not attached to my version of the fix =). Is there hope for your branch merging soon or would be make sense to merge this fix now so that people are unblocked quickly? |
@martijnwalraven any updates on your new branch? I'd love to help get this problem fixed if I can. I run into it daily and it's making my server return 500s =(. If there is anything I can do, please point me at the work. I'm happy to fix whatever is needed. |
Definitely. I've updated to alpha 6 and I'll watch our server to see if things improve. Thanks for the update! |
I tested with |
I rested this with |
I rested this with 2.5.0 and it still throws "Converting circular structure to JSON" errors. @martijnwalraven did you expect this to be fixed? I can fix the merge conflicts and update this PR if you'd like me to |
I've commented with some thoughts on the original issue #1433 (comment). |
Thank you for opening this originally, and thank you very much for the excellent reproduction you provided in #1433 (comment). That said, I think this PR is no longer necessary with the notes I've left in #1433 (comment). I hope you'll understand this approach and find this satisfactory! |
Fixes #1433
TODO: