{"action":"created","issue":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/931","labels_url":"https://api.github.com/repos/unbit/uwsgi/issues/931/labels{/name}","comments_url":"https://api.github.com/repos/unbit/uwsgi/issues/931/comments","events_url":"https://api.github.com/repos/unbit/uwsgi/issues/931/events","html_url":"https://github.com/unbit/uwsgi/issues/931","id":81862816,"number":931,"title":"Bad format for JSON data drom stats module","user":{"login":"captnbp","id":7904693,"avatar_url":"https://avatars.githubusercontent.com/u/7904693?v=3","gravatar_id":"","url":"https://api.github.com/users/captnbp","html_url":"https://github.com/captnbp","followers_url":"https://api.github.com/users/captnbp/followers","following_url":"https://api.github.com/users/captnbp/following{/other_user}","gists_url":"https://api.github.com/users/captnbp/gists{/gist_id}","starred_url":"https://api.github.com/users/captnbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/captnbp/subscriptions","organizations_url":"https://api.github.com/users/captnbp/orgs","repos_url":"https://api.github.com/users/captnbp/repos","events_url":"https://api.github.com/users/captnbp/events{/privacy}","received_events_url":"https://api.github.com/users/captnbp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-28T10:18:59Z","updated_at":"2015-05-28T10:38:17Z","closed_at":"2015-05-28T10:38:11Z","body":"Hi,\r\n\r\nWith uwsgi 2.0.9 and 2.0.10, I activated the stats with \"--stats 127.0.0.1:1717\"\r\n\r\nThe output Json when requesting the stats is invalid. All the opening part is missing at the beginning before \"version\":\"2.0.10\", :\r\n```\r\n        \"version\":\"2.0.10\",\r\n        \"listen_queue\":0,\r\n        \"listen_queue_errors\":0,\r\n        \"signal_queue\":0,\r\n        \"load\":0,\r\n        \"pid\":18883,\r\n        \"uid\":30094,\r\n        \"gid\":4122,\r\n        \"cwd\":\"/data/hyperic/etc\",\r\n        \"locks\":[\r\n                {\r\n                        \"user 0\":0\r\n                },\r\n                {\r\n                        \"signal\":0\r\n                },\r\n                {\r\n                        \"filemon\":0\r\n                },\r\n                {\r\n                        \"timer\":0\r\n                },\r\n                {\r\n                        \"rbtimer\":0\r\n                },\r\n                {\r\n                        \"cron\":0\r\n                },\r\n                {\r\n                        \"rpc\":0\r\n                },\r\n                {\r\n                        \"snmp\":0\r\n                }\r\n        ],\r\n        \"sockets\":[\r\n                {\r\n                        \"name\":\"/data/hyperic/tmp/api.sock\",\r\n                        \"proto\":\"uwsgi\",\r\n                        \"queue\":0,\r\n                        \"max_queue\":0,\r\n                        \"shared\":0,\r\n                        \"can_offload\":0\r\n                }\r\n        ],\r\n        \"workers\":[\r\n                {\r\n                        \"id\":1,\r\n                        \"pid\":19310,\r\n                        \"accepting\":1,\r\n                        \"requests\":0,\r\n                        \"delta_requests\":0,\r\n                        \"exceptions\":0,\r\n                        \"harakiri_count\":0,\r\n                        \"signals\":0,\r\n                        \"signal_queue\":0,\r\n                        \"status\":\"idle\",\r\n                        \"rss\":0,\r\n                        \"vsz\":0,\r\n                        \"running_time\":0,\r\n                        \"last_spawn\":1432807965,\r\n                        \"respawn_count\":1,\r\n                        \"tx\":0,\r\n                        \"avg_rt\":0,\r\n                        \"apps\":[\r\n                                {\r\n                                        \"id\":0,\r\n                                        \"modifier1\":0,\r\n                                        \"mountpoint\":\"\",\r\n                                        \"startup_time\":1,\r\n                                        \"requests\":0,\r\n                                        \"exceptions\":0,\r\n                                        \"chdir\":\"\"\r\n                                }\r\n                        ],\r\n                        \"cores\":[\r\n                                {\r\n                                        \"id\":0,\r\n                                        \"requests\":0,\r\n                                        \"static_requests\":0,\r\n                                        \"routed_requests\":0,\r\n                                        \"offloaded_requests\":0,\r\n                                        \"write_errors\":0,\r\n                                        \"read_errors\":0,\r\n                                        \"in_request\":0,\r\n                                        \"vars\":[\r\n\r\n                                        ]\r\n                                }\r\n                        ]\r\n                }\r\n        ]\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/comments/106267333","html_url":"https://github.com/unbit/uwsgi/issues/931#issuecomment-106267333","issue_url":"https://api.github.com/repos/unbit/uwsgi/issues/931","id":106267333,"user":{"login":"unbit","id":254469,"avatar_url":"https://avatars.githubusercontent.com/u/254469?v=3","gravatar_id":"","url":"https://api.github.com/users/unbit","html_url":"https://github.com/unbit","followers_url":"https://api.github.com/users/unbit/followers","following_url":"https://api.github.com/users/unbit/following{/other_user}","gists_url":"https://api.github.com/users/unbit/gists{/gist_id}","starred_url":"https://api.github.com/users/unbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unbit/subscriptions","organizations_url":"https://api.github.com/users/unbit/orgs","repos_url":"https://api.github.com/users/unbit/repos","events_url":"https://api.github.com/users/unbit/events{/privacy}","received_events_url":"https://api.github.com/users/unbit/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T10:38:16Z","updated_at":"2015-05-28T10:38:16Z","body":"yes you need to use telnet/nc (or generally every tcp client), eventually you can pute the stats server in http mode"}}