Giter Club home page Giter Club logo

Comments (8)

durango avatar durango commented on August 25, 2024

With DEBUG=connect:redis node app.js

connect:redis GET "sess:SKKJm1a+6K6wn/cSqzPI1QJh" +295ms
connect:redis GOT {"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"flash":{},"user_type":2,"user_id":7} +1ms
connect:redis SETEX "sess:SKKJm1a+6K6wn/cSqzPI1QJh" ttl:{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"flash":{},"user_type":2,"user_id":7} %s +16ms
connect:redis SETEX complete +1ms
GET /orders/new 200 19ms - 3.33kb
connect:redis GET "sess:SKKJm1a+6K6wn/cSqzPI1QJh" +8s
connect:redis GOT OK +1ms
SyntaxError: Unexpected token O

from connect-redis.

tj avatar tj commented on August 25, 2024

hmm are you saving settings on your own anywhere directly with the store? otherwise there should be no chance of getting invalid json in there

from connect-redis.

durango avatar durango commented on August 25, 2024

a FLUSHALL on the redis db helped alleviate the problem, but a more interesting fact is that on the second to last line on my previous comment should not have been "ok." Redis was returning nil to me which should mean "null" in node_redis right? So may be it's not capturing nils correctly?

from connect-redis.

durango avatar durango commented on August 25, 2024

TJ, I'm still getting this error :/ it's preventing me from pushing to production.. how would I save settings on my own? I'm just using req.session...

from connect-redis.

tj avatar tj commented on August 25, 2024

redis 0.8.x is fucked up the parser breaks all the time

from connect-redis.

durango avatar durango commented on August 25, 2024

Well that makes things clearer! What do you recommend doing / what version of redis do you use for LearnBoost?

from connect-redis.

tj avatar tj commented on August 25, 2024

i just released a new one reverting to 0.7.x, though an older version of connect-redis would work as well

from connect-redis.

shredding avatar shredding commented on August 25, 2024

That saved my life.

from connect-redis.

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.