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

Fix json dump crasher with JSON 2.7.0+ #781

Merged
merged 1 commit into from Dec 15, 2023

Conversation

PatrickTulskie
Copy link
Contributor

@PatrickTulskie PatrickTulskie commented Dec 4, 2023

Attempting to fix a crasher that primarily affects Ruby 3+ when using JSON 2.7.0 when dumping logs to JSON.

Thanks @mishina2228 for pointing out this is related to flori/json#553

@PatrickTulskie
Copy link
Contributor Author

I'll squash the commits before this gets merged. Just doing this work from the GitHub interface and my phone while I'm on the road.

@mishina2228
Copy link
Contributor

FYI, the reason for the crash is json 2.7.0 rather than Ruby 3+.
flori/json#553

@PatrickTulskie
Copy link
Contributor Author

FYI, the reason for the crash is json 2.7.0 rather than Ruby 3+. flori/json#553

Thank you for that. I was scratching my head trying to figure out why this wasn't a more widespread issue and doesn't affect any of the apps I'm running in prod. I don't use JSON logging with resque-scheduler so I figured that was the case. Lemme update the PR and commits with this info though.

@PatrickTulskie PatrickTulskie changed the title Fix json dump crasher in Ruby 3+ Fix json dump crasher with JSON 3+ Dec 5, 2023
@PatrickTulskie PatrickTulskie changed the title Fix json dump crasher with JSON 3+ Fix json dump crasher with JSON 2.7.0+ Dec 5, 2023
@PatrickTulskie PatrickTulskie merged commit cfe0183 into resque:master Dec 15, 2023
136 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants