requests: RecursionError: maximum recursion depth exceeded
If gevent
is installed, it needs to monkey-patch the python socket
s to cooperate (see documentation or this github issue).
Therefore gevent.monkey.patch_all()
is either missing or not called early enough.
# at the beginning of the script
import gevent.monkey
gevent.monkey.patch_all()
# all the other stuff below, like for example
import requests