2022-01-21 14:39:01,198 ERROR exception when calling pull_process_and_push_data function for device{"device_id": "ADGE194860542", "ip": "192.168.213.70", "punch_direction": "", "clear_from_device_on_fetch": ""}
Traceback (most recent call last):
File "C:\Users\gm\Desktop\biometric-attendance-sync-tool-v1.0-win64\biometric-attendance-sync-tool-v1.0-win64\erpnext_sync.py", line 51, in main
pull_process_and_push_data(device, device_attendance_logs)
File "C:\Users\gm\Desktop\biometric-attendance-sync-tool-v1.0-win64\biometric-attendance-sync-tool-v1.0-win64\erpnext_sync.py", line 129, in pull_process_and_push_data
raise Exception('API Call to ERPNext Failed.')
Exception: API Call to ERPNext Failed.
2022-01-21 14:40:05,007 ERROR Error during ERPNext API Call. 55 1642626134.0 ADGE194860542 Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 59, in application
frappe.api.validate_auth()
File "apps/frappe/frappe/api.py", line 173, in validate_auth
validate_auth_via_api_keys(authorization_header)
File "apps/frappe/frappe/api.py", line 228, in validate_auth_via_api_keys
validate_api_key_secret(api_key, api_secret, authorization_source)
File "apps/frappe/frappe/api.py", line 244, in validate_api_key_secret
doc_secret = frappe.utils.password.get_decrypted_password(doctype, doc, fieldname='api_secret')
File "apps/frappe/frappe/utils/password.py", line 62, in get_decrypted_password
frappe.throw(_("Password not found"), frappe.AuthenticationError)
File "apps/frappe/frappe/__init__.py", line 439, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File "apps/frappe/frappe/__init__.py", line 418, in msgprint
_raise_exception()
File "apps/frappe/frappe/__init__.py", line 372, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.AuthenticationError: Password not found
The ERPNext Biometric Push Service service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.
the push service is buggy at the moment and has not been fixed. you have to manually run the sync process. to do this, open command line and go to the root directory of the biometric sync tool then run this command:
Thanks @adnan but i did that using python erpnext_sync.py and sysnc work for fetch data from the biometric device put not push because service not working
I asked you to share the content of error.txt contained in the logs folder as the error preventing the sync process from completing will be there but you’re not sharing. I don’t think I will be able to assist you if I cannot see any error generated by the system.