Skip to content

BUG: euclid spectra read timeout #252

@bsipocz

Description

@bsipocz

Latest failure, I can't recall seeing this before now:

https://github.com/Caltech-IPAC/irsa-tutorials/actions/runs/22010238846/job/63602519963

tutorials/euclid/3_Euclid_intro_1D_spectra.md
  - An exception occurred during code execution, halting further execution:

---------------------------------------------------------------------------
TimeoutError                              Traceback (most recent call last)
Cell In[8], line 1
----> 1 spectrum = QTable.read(spectrum_path)

File ~/work/irsa-tutorials/irsa-tutorials/.tox/py312-buildhtml/lib/python3.12/site-packages/astropy/table/connect.py:62, in TableRead.__call__(self, *args, **kwargs)
     59 units = kwargs.pop("units", None)
     60 descriptions = kwargs.pop("descriptions", None)
---> 62 out = self.registry.read(cls, *args, **kwargs)
     64 # For some readers (e.g., ascii.ecsv), the returned `out` class is not
     65 # guaranteed to be the same as the desired output `cls`.  If so,
     66 # try coercing to desired class without copying (io.registry.read
     67 # would normally do a copy).  The normal case here is swapping
     68 # Table <=> QTable.
     69 if cls is not out.__class__:

File ~/work/irsa-tutorials/irsa-tutorials/.tox/py312-buildhtml/lib/python3.12/site-packages/astropy/io/registry/core.py:200, in UnifiedInputRegistry.read(self, cls, format, cache, *args, **kwargs)
Site has 1 error and 0 warning, stopping build.
    196 try:
    197     ctx = get_readable_fileobj(
File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/urllib/request.py:1392, in HTTPSHandler.https_open(self, req)
   1391 def https_open(self, req):
-> 1392     return self.do_open(http.client.HTTPSConnection, req,
   1393                         context=self._context)

File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/urllib/request.py:1348, in AbstractHTTPHandler.do_open(self, http_class, req, **http_conn_args)
   1346     except OSError as err: # timeout error
   1347         raise URLError(err)
-> 1348     r = h.getresponse()
   1349 except:
   1350     h.close()

File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/http/client.py:1430, in HTTPConnection.getresponse(self)
   1428 try:
   1429     try:
-> 1430         response.begin()
   1431     except ConnectionError:
   1432         self.close()

File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/http/client.py:331, in HTTPResponse.begin(self)
    329 # read until we get a non-100 response
    330 while True:
--> 331     version, status, reason = self._read_status()
    332     if status != CONTINUE:
    333         break

File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/http/client.py:292, in HTTPResponse._read_status(self)
    291 def _read_status(self):
--> 292     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
    293     if len(line) > _MAXLINE:
    294         raise LineTooLong("status line")

File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/socket.py:720, in SocketIO.readinto(self, b)
    718 while True:
    719     try:
--> 720         return self._sock.recv_into(b)
    721     except timeout:
    722         self._timeout_occurred = True

File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/ssl.py:1251, in SSLSocket.recv_into(self, buffer, nbytes, flags)
   1247     if flags != 0:
   1248         raise ValueError(
   1249           "non-zero flags not allowed in calls to recv_into() on %s" %
   1250           self.__class__)
-> 1251     return self.read(nbytes, buffer)
   1252 else:
   1253     return super().recv_into(buffer, nbytes, flags)

File /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/ssl.py:1103, in SSLSocket.read(self, len, buffer)
   1101 try:
   1102     if buffer is not None:
-> 1103         return self._sslobj.read(len, buffer)
   1104     else:
   1105         return self._sslobj.read(len)

TimeoutError: The read operation timed out

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontent: euclidContent related issues/PRs for notebooks with Euclid relevance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions