Method erpnext.stock.get_item_details.get_item_details 504 Gateway Time-out

I run a ERPNext 12.1.3 production server for testing.

Beside some Employees, 1 customer and 2 Items, no data have been added.

While trying to create a Sales invoice, I get a request time out error:

Request URL: http://192.168.0.17/api/method/erpnext.stock.get_item_details.get_item_details
Request Method: POST
Status Code: 504 Gateway Time-out

I already have tried to increase the timeout via bench config http-timeout, but no success.

As there is not much data inside the db, this can’t be related to slow response anyway.

When I open the above URL it shows:

Traceback (most recent call last):
File “/home/erpnext/frappe_bench/apps/frappe/frappe/app.py”, line 60, in application
response = frappe.api.handle()
File “/home/erpnext/frappe_bench/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/erpnext/frappe_bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/erpnext/frappe_bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/erpnext/frappe_bench/apps/frappe/frappe/init.py”, line 1036, in call
return fn(*args, **newargs)
TypeError: get_item_details() missing 1 required positional argument: ‘args’

Any idea what causes this behaviour?

thanks

Please any one tel me to fix this