Dash callback error

Hello,
I have the following code:

@app.callback(Output('table', 'children'),
              Input('from_date', 'date'),
              Input('end_date', 'date'),
              Input('list', 'n_clicks'),
              Input('group_date', 'n_clicks'),
              Input('group_gt', 'n_clicks'),
              Input('url', 'pathname'),
              Input('switch_s_u', 'value'),
              Input({"type": "group_net", "index": ALL}, 'n_clicks'),
              Input({"type": 'group_country', "index": ALL}, 'n_clicks'),
              # prevent_initial_call=False
              )
def table_detalied(start_d, end_d, n_all, n_date, n_gt, pathname, types, net, contr):
    token = pathname.split('/')[3]
    start = date.fromisoformat(start_d).strftime("%d-%m-%Y")
    end = date.fromisoformat(end_d).strftime("%d-%m-%Y")
    df = get_statistic_by_ms(db, token, types, start, end)
    delta = ('{} - {}'.format(start, end))

    ctx = dash.callback_context
    button_id = ctx.triggered[0]['prop_id'].split('.')[0]

    if start_d is not None and end_d is not None and button_id is not None:
        print(df)

at the moment are getting error:

[2021-05-04 10:19:19 +0100] [20692] [ERROR] Exception on /s_usage/_dash-update-component [POST]
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/dash/dash.py", line 1076, in dispatch
    response.set_data(func(*args, outputs_list=outputs_list))
  File "/root/.pyenv/versions/3.8.0/envs/s_usage-3.8.0/lib/python3.8/site-packages/dash/dash.py", line 1007, in add_context
    output_value = func(*args, **kwargs)  # %% callback invoked %%
  File "/home/a/s_usage/statistics/app.py", line 166, in table_detalied
OSError: [Errno 5] Input/output error

could you help me find the reason why I’m starting to get this error
thank you