I have managed to execute the jupyter notebook api_requests.ipynb withouth any problem. However, when arriving to the cell "Label text", I get the following error when executing the response.post instruction:
At the same time that this error is generated, the python -m api service stops, with an exception in ASGI application [2].
On the other way, when executing the cell "Initialize ESCO embeddings", a ConnectionResetError is produced when the request.post function is executed. [3]
I have accessed the Redis server using redis-cli, both from the host machine and from within the Docker container, and when executing the simple instruction "KEY *", the connection is refused and I get disconnected [4].
I am working on a server with 2 GPUs Nvidia GeForce.
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in read_chunked(self, amt, decode_content)
763 while True:
--> 764 self._update_chunk_length()
765 if self.chunk_left == 0:
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in _update_chunk_length(self)
700 self.close()
--> 701 raise httplib.IncompleteRead(line)
702
IncompleteRead: IncompleteRead(0 bytes read)
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last)
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/requests/models.py in generate()
750 try:
--> 751 for chunk in self.raw.stream(chunk_size, decode_content=True):
752 yield chunk
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in stream(self, amt, decode_content)
571 if self.chunked and self.supports_chunked_reads():
--> 572 for line in self.read_chunked(amt, decode_content=decode_content):
573 yield line
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in read_chunked(self, amt, decode_content)
792 if self._original_response:
--> 793 self._original_response.close()
794
/opt/anaconda3/envs/CPU/lib/python3.7/contextlib.py in exit(self, type, value, traceback)
129 try:
--> 130 self.gen.throw(type, value, traceback)
131 except StopIteration as exc:
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in _error_catcher(self)
454 # This includes IncompleteRead.
--> 455 raise ProtocolError("Connection broken: %r" % e, e)
456
Hello,
I have managed to execute the jupyter notebook api_requests.ipynb withouth any problem. However, when arriving to the cell "Label text", I get the following error when executing the response.post instruction:
ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read)) [1]
At the same time that this error is generated, the python -m api service stops, with an exception in ASGI application [2].
On the other way, when executing the cell "Initialize ESCO embeddings", a ConnectionResetError is produced when the request.post function is executed. [3]
I have accessed the Redis server using redis-cli, both from the host machine and from within the Docker container, and when executing the simple instruction "KEY *", the connection is refused and I get disconnected [4].
I am working on a server with 2 GPUs Nvidia GeForce.
Best regards
The traces of the abovementioned errors are:
[1]
ValueError Traceback (most recent call last) /opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in _update_chunk_length(self) 696 try: --> 697 self.chunk_left = int(line, 16) 698 except ValueError:
ValueError: invalid literal for int() with base 16: b''
During handling of the above exception, another exception occurred:
IncompleteRead Traceback (most recent call last) /opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in _error_catcher(self) 436 try: --> 437 yield 438
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in read_chunked(self, amt, decode_content) 763 while True: --> 764 self._update_chunk_length() 765 if self.chunk_left == 0:
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in _update_chunk_length(self) 700 self.close() --> 701 raise httplib.IncompleteRead(line) 702
IncompleteRead: IncompleteRead(0 bytes read)
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last) /opt/anaconda3/envs/CPU/lib/python3.7/site-packages/requests/models.py in generate() 750 try: --> 751 for chunk in self.raw.stream(chunk_size, decode_content=True): 752 yield chunk
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in stream(self, amt, decode_content) 571 if self.chunked and self.supports_chunked_reads(): --> 572 for line in self.read_chunked(amt, decode_content=decode_content): 573 yield line
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in read_chunked(self, amt, decode_content) 792 if self._original_response: --> 793 self._original_response.close() 794
/opt/anaconda3/envs/CPU/lib/python3.7/contextlib.py in exit(self, type, value, traceback) 129 try: --> 130 self.gen.throw(type, value, traceback) 131 except StopIteration as exc:
/opt/anaconda3/envs/CPU/lib/python3.7/site-packages/urllib3/response.py in _error_catcher(self) 454 # This includes IncompleteRead. --> 455 raise ProtocolError("Connection broken: %r" % e, e) 456
ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
During handling of the above exception, another exception occurred:
ChunkedEncodingError Traceback (most recent call last)