Skip to content

FidRadDB API fail #440

@oceancolorcoder

Description

@oceancolorcoder

With sensor-based regime set in the configuration, trying to open the CalChar window results in:

Traceback (most recent call last):
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/http/client.py", line 1303, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/http/client.py", line 1349, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/http/client.py", line 1298, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/http/client.py", line 1058, in _send_output
    self.send(msg)
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/http/client.py", line 996, in send
    self.connect()
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/http/client.py", line 1468, in connect
    super().connect()
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/http/client.py", line 962, in connect
    self.sock = self._create_connection(
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/socket.py", line 863, in create_connection
    raise exceptions[0]
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/socket.py", line 848, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 60] Operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/daurin/GitRepos/HyperCP/Source/ConfigWindow.py", line 1476, in l1bCalCharButtonPressed
    CalCharWindowDialog = CalCharWindow(self.name,self)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/GitRepos/HyperCP/Source/CalCharWindow.py", line 30, in __init__
    self.initUI()
  File "/Users/daurin/GitRepos/HyperCP/Source/CalCharWindow.py", line 269, in initUI
    self.CalStatusUpdate()
  File "/Users/daurin/GitRepos/HyperCP/Source/CalCharWindow.py", line 451, in CalStatusUpdate
    self.missing_FidRadDB_cal_char_files(ConfigFile.settings['fL1bCal'])
  File "/Users/daurin/GitRepos/HyperCP/Source/CalCharWindow.py", line 534, in missing_FidRadDB_cal_char_files
    filesInFidRadDB = OCDBApi.fidrad_list_files(api, serialNumber_calCharType)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/site-packages/ocdb/api/OCDBApi.py", line 125, in fidrad_list_files
    with urllib.request.urlopen(request) as response:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/urllib/request.py", line 519, in open
    response = self._open(req, data)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 60] Operation timed out>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions