Analytics - Internal Server Error
Hi. The site analytics shows error "111" and does not display information in dashboards. Below is a related error from the error log and a screenshot of the analytics page. Please help me solve the problem.
Error "'str' object has no attribute 'max'":
Traceback with variables (most recent call last):
File "apps/frappe/frappe/app.py", line 114, in application
response = frappe.api.handle(request)
request = <Request 'http://89.169.169.178/api/method/press.api.analytics.get' [POST]>
response = None
rollback = True
e = AttributeError("'str' object has no attribute 'max'")
File "apps/frappe/frappe/api/init.py", line 49, in handle
data = endpoint(**arguments)
request = <Request 'http://89.169.169.178/api/method/press.api.analytics.get' [POST]>
endpoint = <function handle_rpc_call at 0x7fef572d5c60>
arguments = {'method': 'press.api.analytics.get'}
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
method = 'press.api.analytics.get'
frappe = <module 'frappe' from 'apps/frappe/frappe/init.py'>
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
cmd = 'press.api.analytics.get'
data = None
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
cmd = 'press.api.analytics.get'
from_async = False
server_script = None
method = <function get at 0x7fef523ef640>
File "apps/frappe/frappe/init.py", line 1775, in call
return fn(*args, **newargs)
fn = <function get at 0x7fef523ef640>
args = ()
kwargs = {'name': 'support.wspacehub.com', 'timezone': 'Europe/Moscow', 'duration': '24h', 'cmd': 'press.api.analytics.get'}
newargs = {'name': 'support.wspacehub.com', 'timezone': 'Europe/Moscow', 'duration': '24h'}
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
args = ()
kwargs = {'name': 'support.wspacehub.com', 'timezone': 'Europe/Moscow', 'duration': '24h'}
apply_condition = <function whitelist.