Yeah. The colab is copy and past from the python application. Also another issue that seems to be new, I am now encountering a few requests that never return. I use Pycharm as my dev environment and when I hit pause and then stop (i.e. SIGINT), it always stops on return self._sslobj.read(len, buffer)
in this function is ssl.py:
def read(self, len=1024, buffer=None):
"""Read up to LEN bytes and return them.
Return zero-length string on EOF."""
self._checkClosed()
if self._sslobj is None:
raise ValueError("Read on closed or unwrapped SSL socket.")
try:
if buffer is not None:
return self._sslobj.read(len, buffer)
else:
return self._sslobj.read(len)
except SSLError as x:
if x.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
if buffer is not None:
return 0
else:
return b''
else:
raise
When I switch back to 2.0-flash, no issues. I am going to try running with 2.5 Flash Preview next.