Add protection on two endpoints

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Add protection on two endpoints

Shawn Y.

Please consider to add some protection on endpoints




They are available to "GET" method, but an empty request body will crash the function get_performance_Latency() and get_performance_Bandwith() in vsm-dashboard/vsm_dashboard/dashboards/vsm/overview/

Json throws an exception when request.body is empty on line

data = json.loads(request.body)