When I try to export any report to either Excel or CSV, I get the following error:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/reportview.py”, line 132, in export_query
ret = db_query.execute(**form_params)
TypeError: execute() got an unexpected keyword argument ‘csrf_token’
Can you share what version you are currently in?
ERPNext: v8.0.21 (master)
Frappe Framework: v8.0.32 (master)
Does this error produced in all of the reports you are trying to export?
If so, is this an existing report from the core or a custom one?
Please update to ERPNext: v8.0.33 (master) and try to replicate issue once again. For us, export in both the format is working fine.
Im having the same Issue, cant download CSV for any report it started a couple of days ago. But the problem is intermitent, sometimes it works some times the error appears with the same report.
The bench and ERPnext versions are older and havent updatede in a while.
Frappe Framework: v7.2.12
Mesage its allmost the same that the one reported, only the lines to wich it makes references changes after the first (line 55).