Traceback (most recent call last):
File “C:\Users\Administrator\Desktop\biometric-attendance-sync-tool-1.0\erpnext_sync.py”, line 51, in main
pull_process_and_push_data(device, device_attendance_logs)
File “C:\Users\Administrator\Desktop\biometric-attendance-sync-tool-1.0\erpnext_sync.py”, line 117, in pull_process_and_push_data
erpnext_status_code, erpnext_message = send_to_erpnext(device_attendance_log[‘user_id’], device_attendance_log[‘timestamp’], device[‘device_id’], punch_direction)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Administrator\Desktop\biometric-attendance-sync-tool-1.0\erpnext_sync.py”, line 181, in send_to_erpnext
response = requests.request(“POST”, url, headers=headers, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Administrator\Desktop\biometric-attendance-sync-tool-1.0\venv\Lib\site-packages\requests\api.py”, line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Administrator\Desktop\biometric-attendance-sync-tool-1.0\venv\Lib\site-packages\requests\sessions.py”, line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Administrator\Desktop\biometric-attendance-sync-tool-1.0\venv\Lib\site-packages\requests\sessions.py”, line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Administrator\Desktop\biometric-attendance-sync-tool-1.0\venv\Lib\site-packages\requests\adapters.py”, line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘erp.sequretek.com’, port=443): Max retries exceeded with url: /api/method/erpnext.hr.doctype.employee_checkin.employee_checkin.add_log_based_on_employee_field (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)’)))
I am facing this error while biometric integration using biometric-attendance-sync-tool.
any idea?