question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StreamingClient 409 and 401 errors

See original GitHub issue

Hi,

I’m currently getting 409 errors while trying to run the tweepy StreamingClient. Earlier I experienced 401 errors and have tried removing the project and resetting the bearer token. I’ve also tried resyncing my clock time to internet time. But my attempts have been useless so far. Is anyone experiencing the same errors or have any ideas for making the stream work?

import tweepy

streamer = tweepy.StreamingClient(
    bearer_token='sample_token',
    wait_on_rate_limit=True,
    max_retries=3
)

stream = streamer.filter()

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Harmon758commented, Oct 2, 2022

The relevant Response is from calling add_rules, in your run_forever method.

0reactions
nono-londoncommented, Oct 3, 2022

That worked, I do get the error reponse now. tx v m

Read more comments on GitHub >

github_iconTop Results From Across the Web

StreamingClient 409 and 401 errors - python - Stack Overflow
I'm currently getting 409 errors while trying to run the tweepy StreamingClient. Earlier I experienced 401 errors and have tried removing ...
Read more >
Tweepy Stream encountered HTTP error: 409 - Twitter API v2
So I was running the streamingclient today and then it disconnected with this Stream encountered HTTP error: 409.
Read more >
StreamingClient raising 401 error · Issue #160 - GitHub
It keeps throwing a 401 error. I am able to run the "c = auth.client_from_token_file(token_path, api_key)" example which generates my token.
Read more >
401 vs 403 vs 409 - When to use What? - YouTube
This video explains the use of HTTP status codes 401, 403 and 409 along with an example.
Read more >
401 Unauthorized - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 401 Unauthorized response status code indicates that the client request has not been completed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found