Testing login API but not working

Just testing login API but getting the following error. Username and password verified correct. Any ideas?

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 52, in application
init_request(request)
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 114, in init_request
frappe.local.http_request = frappe.auth.HTTPRequest()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 48, in init
frappe.local.login_manager = LoginManager()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 101, in init
self.login()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 119, in login
self.authenticate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 186, in authenticate
self.fail(‘Incomplete login details’, user=user)
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 210, in fail
add_authentication_log(message, user, status=“Failed”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/authentication_log/authentication_log.py”, line 22, in add_authentication_log
}).insert(ignore_permissions=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 193, in insert
self._validate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 399, in _validate
self._validate_mandatory()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 619, in _validate_mandatory
name=self.name))
MandatoryError: [Authentication Log, 45276ebc0b]: user

Got it working. Thank you.