Git Product home page Git Product logo

Comments (5)

mperham avatar mperham commented on June 17, 2024

I’ve never seen this. I suspect we’ll need to see the actual job payload to diagnose.

from sidekiq.

pbstriker38 avatar pbstriker38 commented on June 17, 2024

These are the job args.

108949587, 43342709, 521298525, 2778

from sidekiq.

pbstriker38 avatar pbstriker38 commented on June 17, 2024

Tracked it down. This is due to this change.

8506d94

This is the backtrace that was created before the change and can no longer be read by the new code.

"eJwdy00OwiAQBtCrGDZujERjXPQqxoxQPmV0WugM2Ov78/bv4kKt/lmi+Qe3\n3KNX1B6FLVPtIqRYOqzRmjGTtdBAEWOZYDRKMST65r3G4XgeeN7cKvRedNq6\
nnROO3jjhxQtNnJJgDQpv0DfUr7mkPs/cfvlw+ucxiGzd9QPLSDft\n"

from sidekiq.

mperham avatar mperham commented on June 17, 2024

Looks like we should have used m rather than m0 as the unpack directive?

https://github.com/ruby/base64/blob/9669a7d3b0e3b9a739969404daf58f912c58c6b3/lib/base64.rb#L242

from sidekiq.

Earlopain avatar Earlopain commented on June 17, 2024

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.

from sidekiq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.