Open XioNoX opened 7 years ago
I was beaten by the same error in my efforts to convert bird-lg to python3 using 2to3
Exception on /prefix_bgpmap/aifnis/ipv4 [GET] Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python3.4/site-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python3.4/site-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise raise value File "/usr/lib/python3.4/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3.4/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functionsrule.endpoint File "/extra/var/www/ozo.com/htdocs/cacti/birdlg/lg.py", line 364, in show_route_for_bgpmap return show_route("prefix_bgpmap", hosts, proto) File "/extra/var/www/ozo.com/htdocs/cacti/birdlg/lg.py", line 641, in show_route detail[host] = build_as_tree_from_raw_bird_ouput(host, proto, res) File "/extra/var/www/ozo.com/htdocs/cacti/birdlg/lg.py", line 570, in build_as_tree_from_raw_bird_ouput path.extend(line.replace("BGP.as_path:", "").strip().split(" ")) AttributeError: 'NoneType' object has no attribute 'extend'
Edit: it turned out that this error is caused by the missing flask-bootstrap module.
All the bgpmap queries return the following error in the logs, as well as an "Internal Server Error" on the frontend.
Please let me know if you need more informations.