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
Invalid base64 when viewing dead job #6241
Comments
I’ve never seen this. I suspect we’ll need to see the actual job payload to diagnose. |
These are the job args.
|
Tracked it down. This is due to this change. This is the backtrace that was created before the change and can no longer be read by the new code.
|
Looks like we should have used https://github.com/ruby/base64/blob/9669a7d3b0e3b9a739969404daf58f912c58c6b3/lib/base64.rb#L242 |
It was using lax encoding/decoding previously, I changed it to strict on request. It may be safe to simply switch back to that: while a lax encoded string raises on strict decoding, the opposite direction works just fine: Base64.decode64(Base64.strict_encode64("abc"))
# => "abc"
Base64.strict_decode64(Base64.encode64("abc"))
# => <internal:pack>:29:in `unpack1': invalid base64 (ArgumentError) I however haven't tested this further than the above example. |
Ruby version: 3.2.3
Rails version: 7.1.3.2
Sidekiq / Pro / Enterprise version(s):
sidekiq 7.2.2
sidekiq-pro 7.2.0
The text was updated successfully, but these errors were encountered: