Error with https protocol

Hi, guys. I have the error on my site. The error appears on the website, if I use https.
Callback error updating …page-content.children…redirect.pathname…

The Example of links in my project

path_login: {'template': main, 'redirect': '/graph', 'permission': ''},
    path_succes: {'template': test, 'redirect': '', 'permission': ''},
    path_logout: {'template': logout, 'redirect': '', 'permission': ''},
    path_sensors: {'template': listCensors, 'redirect': '', 'permission': ''},
    path_graph: {'template': graph, 'redirect': '', 'permission': ''},
    path_admin: {'template': admin, 'redirect': '', 'permission': 'admin'},
    path_cril_types: {'template': CRILTypes, 'redirect': '', 'permission': ''},
    path_cril_type: {'template': CRILType, 'redirect': '', 'permission': ''},
    path_data: {'template': cridataview, 'redirect': '', 'permission': ''},
    path_admin_script: {'template': adminScripts, 'redirect': '', 'permission': ''},
    path_cri_reports: {'template': criReports, 'redirect': '', 'permission': ''},
    path_cri_daily: {'template': daily_reports, 'redirect': '', 'permission': ''},
    path_cri_daily_reports: {'template': criDailyReports, 'redirect': '', 'permission': ''},
    path_wells: {'template': wells, 'redirect': '', 'permission': ''},
    path_cri_months: {'template': CRIMReports, 'redirect': '', 'permission': ''},
    path_month: {'template': MounthlyReport, 'redirect': '', 'permission': ''},
    path_long_term: {'template': long_term_params, 'redirect': '', 'permission': ''},
    path_roles: {'template': roles, 'redirect': '', 'permission': ''},
    path_user: {'template': user, 'redirect': '', 'permission': ''},
    path_well: {'template': well, 'redirect': '', 'permission': ''},
    path_sensor: {'template': sensor, 'redirect': '', 'permission': ''},
    path_perforation_def: {'template': def_perforation, 'redirect': '', 'permission': ''},
    path_cri_report: {'template': CRIReport, 'redirect': '', 'permission': ''} 
 def paths(self):
                Output('page-content', 'children'),
                Output('redirect', 'pathname')
                Input('url', 'pathname')
        def display_page(pathname):

            view = test.layout
            url = dash.no_update

            if current_user.is_authenticated:
                roles = GetUserId.get_role()
                if pathname in links.paths:
                    if links.paths[pathname]['redirect'] == '':
                        if (links.paths[pathname]['permission'] == ''):
                                view = links.paths[pathname]['template'].layout
                            url = '/404'
                            view = error.layout
                        if hasattr(links.paths[pathname]['template'], 'callback'):
                        url = links.paths[pathname]['redirect']
                    url = '/404'
                    view = error.layout
                view = main.layout
            return [view, url]

Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/pandas/core/indexes/”, line 3361, in get_loc
return self._engine.get_loc(casted_key)
File “pandas/_libs/index.pyx”, line 76, in pandas._libs.index.IndexEngine.get_loc

File “pandas/_libs/index.pyx”, line 108, in pandas._libs.index.IndexEngine.get_loc

File “pandas/_libs/hashtable_class_helper.pxi”, line 1533, in pandas._libs.hashtable.Float64HashTable.get_item

File “pandas/_libs/hashtable_class_helper.pxi”, line 1542, in pandas._libs.hashtable.Float64HashTable.get_item

KeyError: 0.0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/pandas/core/indexes/”, line 3363, in get_loc
raise KeyError(key) from err
KeyError: 0

Got any ideas?

How did you enabled https in your server? Besides, could you run it in debug mode?

It is hard to debug the error message without knowing which pandas object it refers to…