{"action":"created","issue":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1066","repository_url":"https://api.github.com/repos/letscontrolit/ESPEasy","labels_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1066/labels{/name}","comments_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1066/comments","events_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1066/events","html_url":"https://github.com/letscontrolit/ESPEasy/issues/1066","id":304300134,"number":1066,"title":"empty http responses (ESPEasy 2.0 on SONOFF basic)","user":{"login":"pljakobs","id":13985375,"avatar_url":"https://avatars1.githubusercontent.com/u/13985375?v=4","gravatar_id":"","url":"https://api.github.com/users/pljakobs","html_url":"https://github.com/pljakobs","followers_url":"https://api.github.com/users/pljakobs/followers","following_url":"https://api.github.com/users/pljakobs/following{/other_user}","gists_url":"https://api.github.com/users/pljakobs/gists{/gist_id}","starred_url":"https://api.github.com/users/pljakobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pljakobs/subscriptions","organizations_url":"https://api.github.com/users/pljakobs/orgs","repos_url":"https://api.github.com/users/pljakobs/repos","events_url":"https://api.github.com/users/pljakobs/events{/privacy}","received_events_url":"https://api.github.com/users/pljakobs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2018-03-12T09:43:50Z","updated_at":"2018-03-12T15:57:16Z","closed_at":null,"author_association":"NONE","body":"### Steps to reproduce\r\nBuild the current 2.0 branch for 1024kB/DOUT and flash to a SONOFF basic (integrated ESP8266 relay)\r\non any linux system go\r\n'''wget -O - http://<sonoff-ip>/control?cmd=status,gpio,12'''\r\nwatch an empty reply probably 7 out of 8 times\r\nproblem is reproducible after reboots, soft and hard on two different SONOFF boards\r\n\r\n### Expected behavior\r\nShould respond with a json structure describing the state of gpio 12\r\n\r\n### Actual behavior\r\nEmpty response:\r\n```\r\nHypertext Transfer Protocol\r\n    HTTP/1.1 200 OK\\r\\n\r\n    Content-Type: application/json\\r\\n\r\n    Content-Length: 0\\r\\n\r\n    Connection: close\\r\\n\r\n    Access-Control-Allow-Origin: *\\r\\n\r\n    \\r\\n\r\n    [HTTP response 1/1]\r\n    [Time since request: 0.009015000 seconds]\r\n    [Request in frame: 126]\r\n```\r\nafter that, the browser sends a fin ack and ESPEasy responds with a rst ack\r\nfrom the ESPEasy log:\r\n```\r\nEVENT: Clock#Time=Mon,09:40\r\nEVENT: Clock#Time=Mon,09:40 Processing time:90 milliSeconds\r\nsendcontent free: 18184 chunk size:340\r\nWD   : Uptime 34 ConnectFailures 0 FreeMem 18576\r\nsendcontent free: 18184 chunk size:340\r\nsendcontent free: 17736 chunk size:388\r\nsendcontent free: 17736 chunk size:382\r\nsendcontent free: 17736 chunk size:387\r\nsendcontent free: 17736 chunk size:393\r\nsendcontent free: 17736 chunk size:389\r\nsendcontent free: 17488 chunk size:391\r\nsendcontent free: 17536 chunk size:391\r\nsendcontent free: 17520 chunk size:373\r\nsendcontent free: 18088 chunk size:427\r\nsendcontent free: 18064 chunk size:424\r\nsendcontent free: 18072 chunk size:388\r\nsendcontent free: 18040 chunk size:454\r\nsendcontent free: 18088 chunk size:412\r\nsendcontent free: 18112 chunk size:259\r\nsendcontent free: 18112 chunk size:0\r\nRam usage: Webserver only: 344 including Core: 0\r\nsendcontent free: 18184 chunk size:340\r\nWD   : Uptime 35 ConnectFailures 0 FreeMem 18328\r\nsendcontent free: 18184 chunk size:340\r\nEVENT: Clock#Time=Mon,09:41\r\nEVENT: Clock#Time=Mon,09:41 Processing time:91 milliSeconds\r\nsendcontent free: 18184 chunk size:340\r\nWD   : Uptime 35 ConnectFailures 0 FreeMem 18576\r\nsendcontent free: 18184 chunk size:340\r\n```\r\n### System configuration\r\n\r\nHardware:\r\n\r\nSONOFF Basic\r\nSoftware or git version:\r\nBuilt off a git pull from the v2.0 branch on Sunday, March 11th\r\n\r\nSystem |  \r\n-- | --\r\nBuild | 20000\r\nGit Build | \"\"\r\nLocal time | \"2018-03-12 09:40:27\"\r\nUnit | 11\r\nUptime | 34\r\nFree RAM | 18216\r\nSensors |  \r\n0 |  \r\ntasknr | 1\r\nTaskName | \"button\"\r\nType | \"Switch input - Switch\"\r\nstate | 0\r\n1 |  \r\ntasknr | 2\r\nTaskName | \"relay\"\r\nType | \"Switch input - Switch\"\r\nstate | 0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/comments/372361264","html_url":"https://github.com/letscontrolit/ESPEasy/issues/1066#issuecomment-372361264","issue_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1066","id":372361264,"user":{"login":"pljakobs","id":13985375,"avatar_url":"https://avatars1.githubusercontent.com/u/13985375?v=4","gravatar_id":"","url":"https://api.github.com/users/pljakobs","html_url":"https://github.com/pljakobs","followers_url":"https://api.github.com/users/pljakobs/followers","following_url":"https://api.github.com/users/pljakobs/following{/other_user}","gists_url":"https://api.github.com/users/pljakobs/gists{/gist_id}","starred_url":"https://api.github.com/users/pljakobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pljakobs/subscriptions","organizations_url":"https://api.github.com/users/pljakobs/orgs","repos_url":"https://api.github.com/users/pljakobs/repos","events_url":"https://api.github.com/users/pljakobs/events{/privacy}","received_events_url":"https://api.github.com/users/pljakobs/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T15:57:16Z","updated_at":"2018-03-12T15:57:16Z","author_association":"NONE","body":"as said: in the current v2.0 branch, this is missing the startStream and endStream calls alltogether. I had just put it in the wrong place. \r\nbtw: next I might dig into an issue that I thin I see with the MQTT controller not honoring the unit ID, but I need some more time for that. ;-)"}}
{"actor":{"display_login":"pljakobs"}}