Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

twitter api ("Connection broken: Invalid Chunk Length(got length b', 0 bytes read)"

r = ''
while r == '':
    try:
        r = requests.get(Url, headers = headers)
    except (requests.exceptions.ConnectionError, requests.exceptions.ChunkedEncodingError) as err:
        log_(err + ' Put to sleep before retrying.')
        time.sleep(100)
        continue
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #twitter #api #Invalid #Chunk #length #bytes
ADD COMMENT
Topic
Name
4+4 =