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.

ReadTimeout during search

See original GitHub issue

I’ve been running twarc on #panamapapers the last few days, and when I’m using search, I’m seeing this after a few hours:

[nruest@rho:panamapapers]$ twarc.py --profile backup --search "panamapapers" >| panamapapers-search-05.json
Traceback (most recent call last):
  File "/usr/local/bin/twarc.py", line 433, in <module>
    main()
  File "/usr/local/bin/twarc.py", line 127, in main
    for tweet in tweets:
  File "/usr/local/bin/twarc.py", line 298, in search
    resp = self.get(url, params=params)
  File "/usr/local/bin/twarc.py", line 202, in new_f
    resp = f(*args, **kwargs)
  File "/usr/local/bin/twarc.py", line 239, in new_f
    return f(self, *args, **kwargs)
  File "/usr/local/bin/twarc.py", line 393, in get
    r = self.client.get(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 480, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 449, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.twitter.com', port=443): Read timed out. (read timeout=None)

I thought it might be the keys that I’m using at first, but I switched them up, and I still get it.

I did a pip install --upgrade twarc on Saturday afternoon, so I should be on 0.6.1 of twarc, and I’m running Python 2.7.6.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
edsucommented, May 31, 2016

It looks like this fix never made it properly to PyPI. It is however in the master branch and will go out with the next PyPI release.

1reaction
edsucommented, Apr 11, 2016

I just got the same error with the same search for panamapapers. I’m going to test out bfd9573 as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Read timed out in Elasticsearch - Stack Overflow
(read timeout=10)) caused by: ReadTimeoutError(HTTPConnectionPool(host='127.0.0.1', port=8001): Read timed out. (read timeout=10)). Snapshot of the randomness:
Read more >
A `ConnectionError` ("Read timed out.") is raised ... - GitHub
Given that the exception is only raised, when using the timeout keyword argument, why isn't Requests raising ReadTimeout exception instead?
Read more >
Configuring timeouts API Reference - Algolia
We released a new version of the PHP API client in public beta. ... read timeout in seconds $config->setWriteTimeout(30); // write timeout ...
Read more >
Netmiko4 read_timeout - Python for Network Engineers
In Netmiko 3.4.0 'send_command()' will search through the device's output looking for the router prompt or pattern for ten seconds. This assumes ...
Read more >
what is read timeout error? - Salesforce Developer Community
What is read timeout error? If this error occur, process stay in a queue or it run after second process? ... HI Karan,...
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