Coder Social home page Coder Social logo

JSON Error on Dump about resque-cleaner HOT 5 CLOSED

danhawker avatar danhawker commented on September 2, 2024
JSON Error on Dump

from resque-cleaner.

Comments (5)

ono avatar ono commented on September 2, 2024

Thanks for reporting the issue.

  1. Reproduce the issue
    Can you build a small project(Rails app?) which reproduces the issue and share with me on github? That will definitely help me to identify the problem. If you can do that, forget about 2 and 3.

  2. Full stack trace
    I suppose that the error happens here:
    https://github.com/ono/resque-cleaner/blob/master/lib/resque_cleaner/server.rb#L176

However if you can give me the stack trace, I can be 100% sure about it and reduce the risk to look at a wrong place.

  1. Try another branch
    I created a branch which is written in a way stackoverflow suggested.
    https://github.com/ono/resque-cleaner/tree/issue5

You can use the branch if you define gem in Gemfile like the following:


Then if possible, can you send the output of JSON dump to me privately? This might workaround the problem, though, I need to know why before making a decision to merge the change to master.

from resque-cleaner.

danhawker avatar danhawker commented on September 2, 2024

Hi Ono,

No problem, will endeavour to set up a quick rails & resque app and push it to github. May take a few days or so.

Dan

from resque-cleaner.

ono avatar ono commented on September 2, 2024

I found some people complain Rails for this error.
e.g. https://gist.github.com/959336

However it seems that the problem has been solved with the latest JSON gem.
https://github.com/flori/json/blob/master/CHANGES#L4-7

Can you try the latest json gem?

I close this issue. Feel free to reopen if you still suffer after updating the json gem.

from resque-cleaner.

danhawker avatar danhawker commented on September 2, 2024

Hi Ono,

Have updated my rails app to the JSON 1.5.3 Gem and all works as expected.

Thanks

Dan

from resque-cleaner.

ono avatar ono commented on September 2, 2024

You're welcome. I am glad to hear that the problem has solved.

from resque-cleaner.

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.