{"action":"created","issue":{"url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/607","repository_url":"https://api.github.com/repos/shinken-monitoring/mod-webui","labels_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/607/comments","events_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/607/events","html_url":"https://github.com/shinken-monitoring/mod-webui/issues/607","id":279683033,"number":607,"title":"Error 500 in Services","user":{"login":"lvicainne","id":1641160,"avatar_url":"https://avatars3.githubusercontent.com/u/1641160?v=4","gravatar_id":"","url":"https://api.github.com/users/lvicainne","html_url":"https://github.com/lvicainne","followers_url":"https://api.github.com/users/lvicainne/followers","following_url":"https://api.github.com/users/lvicainne/following{/other_user}","gists_url":"https://api.github.com/users/lvicainne/gists{/gist_id}","starred_url":"https://api.github.com/users/lvicainne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvicainne/subscriptions","organizations_url":"https://api.github.com/users/lvicainne/orgs","repos_url":"https://api.github.com/users/lvicainne/repos","events_url":"https://api.github.com/users/lvicainne/events{/privacy}","received_events_url":"https://api.github.com/users/lvicainne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-12-06T09:31:05Z","updated_at":"2017-12-18T14:54:44Z","closed_at":null,"author_association":"NONE","body":"Hello !\r\nI have  500 errors using the servcies page anf WebUi2 2.7 (I was using WebUi2 2.4 and it was working fine)\r\n\r\nIn \"/var/lib/shinken/modules/webui2/helper.py\", I commented the incriminated lines :\r\n```\r\n            #if p.uom != '%' and used_pct is not None:\r\n            #    title += \" ({:.2f}%)\".format(used_pct)\r\n```\r\n\r\nThus, it avoids me to get the following error.\r\nThanks for your code and your project !\r\n\r\n> Error: 500 Internal Server Error\r\n> \r\n> Sorry, the requested URL 'http://shinken:7767/all?search=type:service%20stag:service' caused an error:\r\n> \r\n> Internal Server Error\r\n> Exception:\r\n> \r\n> ValueError('zero length field name in format',)\r\n> Traceback:\r\n> \r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.6/site-packages/bottle.py\", line 862, in _handle\r\n>     return route.call(**args)\r\n>   File \"/usr/lib/python2.6/site-packages/bottle.py\", line 1732, in wrapper\r\n>     rv = callback(*a, **ka)\r\n>   File \"/var/lib/shinken/modules/webui2/module.py\", line 509, in lock_version\r\n>     return f(**args)\r\n>   File \"/usr/lib/python2.6/site-packages/bottle.py\", line 3619, in wrapper\r\n>     return template(tpl_name, **tplvars)\r\n>   File \"/usr/lib/python2.6/site-packages/bottle.py\", line 3595, in template\r\n>     return TEMPLATES[tplid].render(kwargs)\r\n>   File \"/usr/lib/python2.6/site-packages/bottle.py\", line 3399, in render\r\n>     self.execute(stdout, env)\r\n>   File \"/usr/lib/python2.6/site-packages/bottle.py\", line 3386, in execute\r\n>     eval(self.co, env)\r\n>   File \"/var/lib/shinken/modules/webui2/plugins/problems/views/problems.tpl\", line 155, in <module>\r\n>     {{!helper.get_perfdata_pies(pb)}}&nbsp;\r\n>   File \"/var/lib/shinken/modules/webui2/helper.py\", line 449, in get_perfdata_pies\r\n>     return \" \".join([self.get_perfdata_pie(p) for p in PerfDatas(elt.perf_data)])\r\n>   File \"/var/lib/shinken/modules/webui2/helper.py\", line 443, in get_perfdata_pie\r\n>     title += \" ({:.2f}%)\".format(used_pct)\r\n> ValueError: zero length field name in format"},"comment":{"url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/comments/352447881","html_url":"https://github.com/shinken-monitoring/mod-webui/issues/607#issuecomment-352447881","issue_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/607","id":352447881,"user":{"login":"maethor","id":2410576,"avatar_url":"https://avatars0.githubusercontent.com/u/2410576?v=4","gravatar_id":"","url":"https://api.github.com/users/maethor","html_url":"https://github.com/maethor","followers_url":"https://api.github.com/users/maethor/followers","following_url":"https://api.github.com/users/maethor/following{/other_user}","gists_url":"https://api.github.com/users/maethor/gists{/gist_id}","starred_url":"https://api.github.com/users/maethor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maethor/subscriptions","organizations_url":"https://api.github.com/users/maethor/orgs","repos_url":"https://api.github.com/users/maethor/repos","events_url":"https://api.github.com/users/maethor/events{/privacy}","received_events_url":"https://api.github.com/users/maethor/received_events","type":"User","site_admin":false},"created_at":"2017-12-18T14:54:44Z","updated_at":"2017-12-18T14:54:44Z","author_association":"CONTRIBUTOR","body":"I really don't understand how `used_pct` would be anything else than a float, but I changed the check. It will be fixed in 2.7.3"}}
{"actor":{"display_login":"maethor"}}