Giter Site home page Giter Site logo

Comments (10)

lefnire avatar lefnire commented on August 18, 2024

racer, derby, racer-db-mongo 0.3.12

from racer.

lackac avatar lackac commented on August 18, 2024

This has happened in my app as well. I couldn't find the root cause but my experience is the same. I ended up checking in access control guards whether this.session is defined.

from racer.

lefnire avatar lefnire commented on August 18, 2024

good thinking, i'll play with that

from racer.

lefnire avatar lefnire commented on August 18, 2024

thanks @lackac , it seems checks on is defined have no side-effects (thought accessControl might go awry since this is a workaround, but I think we're good). I'll close for now an re-open if issues crop up.

from racer.

lackac avatar lackac commented on August 18, 2024

This has bitten me eventually. I don't know why exactly, but when I try to access my application from mobile chrome (android or iPad) it keeps reconnecting. I finally found that the cause of it was this guard and the fact that this.session was undefined. What I don't know is why this doesn't happen on desktop, but does on mobile.

I kept debugging this going step by step into the depth of racer – interesting journey, btw. After a few hours of mind wrapping I got to the source of the problem. I have found that the only time this.session was undefined was when the client was making a snapshot request. The code segment linked above is the one which builds the req object in this case and that is the object from where this.session should be coming from. You can see that the session property is missing from the object.

I tried adding it to it and that did solve the issue for me. I have issued a pull request with that change.

from racer.

lefnire avatar lefnire commented on August 18, 2024

awesome. I'll test your patch soon & chime in.

from racer.

mjohnson9 avatar mjohnson9 commented on August 18, 2024

Any news on this?

from racer.

lefnire avatar lefnire commented on August 18, 2024

no updates on my part. i haven't yet tried removing @lackac's workaround because it works just fine with it in place. should i just close this ticket?

from racer.

lefnire avatar lefnire commented on August 18, 2024

@lackac's fix #40 indeed solved the problem. I've been running HabitRPG for a while now, using a the return unless @session and @session.userId workaround suggested above without problems. But for one reason or another, once you have multiple subscriptions on a page it breaks down - @lackac's fix solves this. Would that codeparty pulled requests :(

from racer.

nateps avatar nateps commented on August 18, 2024

No longer relevant in 0.5

from racer.

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.