Skip to content

FidRadDB API fail #358

@oceancolorcoder

Description

@oceancolorcoder

@juanchossn

Just tried sample_TRiOS_NOTRACKER configuration with the FidRadDB option to retrieve Cal/Char files and got:

`FidRadDB Cal./Char. dir: /Users/daurin/GitRepos/HyperCP/Data/FidRadDB/TriOS
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 1475, in connect
self.sock = self._context.wrap_socket(self.sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/ssl.py", line 1104, in _create
self.do_handshake()
File "/Users/daurin/miniforge3/envs/hypercp/lib/python3.11/ssl.py", line 1382, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1016)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/daurin/GitRepos/HyperCP/Main.py", line 617, in multi2Clicked
self.processMulti()
File "/Users/daurin/GitRepos/HyperCP/Main.py", line 610, in processMulti
Controller.processFilesMultiLevel(
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 821, in processFilesMultiLevel
if Controller.processSingleLevel(pathOut, fp, calibrationMap, 'L1B'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 636, in processSingleLevel
root = Controller.processL1b(inFilePath, outFilePath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 395, in processL1b
root = ProcessL1bTriOS.processL1b(root, outFilePath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL1bTriOS.py", line 394, in processL1b
FidradDB_api(sensorID + '_' + cal_char_type, acq_time, inpath)
File "/Users/daurin/GitRepos/HyperCP/Source/FidradDB_api.py", line 37, in FidradDB_api
cal_char_candidates = OCDBApi.fidrad_list_files(api,elem)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1016)>`

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