@TrystanLea I am also having some errors, trying to download data from emoncms.org today, latest version of script from 11 days ago here is the error I see:
PHPTimeSeries id=120660 downloaded: 15894 bytes
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 360, in _error_catcher
yield
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 669, in read_chunked
chunk = self._handle_chunk(amt)
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 619, in _handle_chunk
value = self._fp._safe_read(amt)
File "/usr/lib/python3.7/http/client.py", line 622, in _safe_read
raise IncompleteRead(b''.join(s), amt)
http.client.IncompleteRead: IncompleteRead(0 bytes read, 8192 more expected)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/models.py", line 750, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 490, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 694, in read_chunked
self._original_response.close()
File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 378, in _error_catcher
raise ProtocolError('Connection broken: %r' % e, e)
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read, 8192 more expected)', IncompleteRead(0 bytes read, 8192 more expected))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "data_downloader.py", line 99, in <module>
phpfina_download(username+"/phpfina/",f['id'],host,apikey)
File "data_downloader.py", line 63, in phpfina_download
download_size = download_file(datadir+str(feedid)+".dat",host+"/feed/export.json?id="+str(feedid)+"&start="+str(download_start)+"&apikey="+apikey,'ab')
File "data_downloader.py", line 35, in download_file
for chunk in r.iter_content(chunk_size=8192):
File "/usr/lib/python3/dist-packages/requests/models.py", line 753, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read, 8192 more expected)', IncompleteRead(0 bytes read, 8192 more expected))
Any ideas what could be causing?
I had not realised I was still uploadign to EmonCMS, looks like your going to close my account (seems fair) but thought I would take a backup first.