Giter VIP home page Giter VIP logo

Comments (5)

danstronoid avatar danstronoid commented on June 9, 2024

I'm running into the same problem. When I use stream.destroy() and wait 30 seconds to reconnect I seem to get an error 420 on the third connection without fail, but if I stop and restart the stream from the command line, it seems to work just fine.

from twitter-lite.

ImTheDeveloper avatar ImTheDeveloper commented on June 9, 2024

Anyone get further with this?

from twitter-lite.

dylanirlbeck avatar dylanirlbeck commented on June 9, 2024

@roowilliams @danstronoid @ImTheDeveloper So this may not be the reason, but have you both looked at https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/connecting? In the Reconnecting section, the docs state that after receiving HTTP 420 errors you should do the following:

Back off exponentially for HTTP 420 errors. Start with a 1 minute wait and double each attempt. Note that every HTTP 420 received increases the time you must wait until rate limiting will no longer will be in effect for your account.

The first thing I would try and do is follow their recommendation for backing off exponentially, since it seems like you all have only tried to wait ~30 seconds.

Alternatively, the errors may be arising from the fact you're clients are just being rate-limited by Twitter (see the Rate limiting section in that same link).

In any event, please let me know if this helps!

from twitter-lite.

dylanirlbeck avatar dylanirlbeck commented on June 9, 2024

I'm going to close this issue for now. If anyone is still experiencing it, please feel free to reach out and I'll re-open.

from twitter-lite.

karthik947 avatar karthik947 commented on June 9, 2024

I'm facing this issue again, has anyone found the solution ?

from twitter-lite.

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.