{"action":"created","issue":{"url":"https://api.github.com/repos/Kinto/kinto.js/issues/264","labels_url":"https://api.github.com/repos/Kinto/kinto.js/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/Kinto/kinto.js/issues/264/comments","events_url":"https://api.github.com/repos/Kinto/kinto.js/issues/264/events","html_url":"https://github.com/Kinto/kinto.js/pull/264","id":117131052,"number":264,"title":"Fixes #263: Handle network request timeouts.","user":{"login":"n1k0","id":41547,"avatar_url":"https://avatars.githubusercontent.com/u/41547?v=3","gravatar_id":"","url":"https://api.github.com/users/n1k0","html_url":"https://github.com/n1k0","followers_url":"https://api.github.com/users/n1k0/followers","following_url":"https://api.github.com/users/n1k0/following{/other_user}","gists_url":"https://api.github.com/users/n1k0/gists{/gist_id}","starred_url":"https://api.github.com/users/n1k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1k0/subscriptions","organizations_url":"https://api.github.com/users/n1k0/orgs","repos_url":"https://api.github.com/users/n1k0/repos","events_url":"https://api.github.com/users/n1k0/events{/privacy}","received_events_url":"https://api.github.com/users/n1k0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kinto/kinto.js/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-16T14:06:46Z","updated_at":"2015-11-17T14:04:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Kinto/kinto.js/pulls/264","html_url":"https://github.com/Kinto/kinto.js/pull/264","diff_url":"https://github.com/Kinto/kinto.js/pull/264.diff","patch_url":"https://github.com/Kinto/kinto.js/pull/264.patch"},"body":"refs #263. r=? @leplatrem "},"comment":{"url":"https://api.github.com/repos/Kinto/kinto.js/issues/comments/157378107","html_url":"https://github.com/Kinto/kinto.js/pull/264#issuecomment-157378107","issue_url":"https://api.github.com/repos/Kinto/kinto.js/issues/264","id":157378107,"user":{"login":"n1k0","id":41547,"avatar_url":"https://avatars.githubusercontent.com/u/41547?v=3","gravatar_id":"","url":"https://api.github.com/users/n1k0","html_url":"https://github.com/n1k0","followers_url":"https://api.github.com/users/n1k0/followers","following_url":"https://api.github.com/users/n1k0/following{/other_user}","gists_url":"https://api.github.com/users/n1k0/gists{/gist_id}","starred_url":"https://api.github.com/users/n1k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1k0/subscriptions","organizations_url":"https://api.github.com/users/n1k0/orgs","repos_url":"https://api.github.com/users/n1k0/repos","events_url":"https://api.github.com/users/n1k0/events{/privacy}","received_events_url":"https://api.github.com/users/n1k0/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T14:04:35Z","updated_at":"2015-11-17T14:04:35Z","body":"Issue is partially confirmed by changing the test like this:\r\n\r\n```js\r\n    describe(\"Request timeout\", () => {\r\n      it(\"should timeout the request\", () => {\r\n        sandbox.stub(root, \"fetch\").returns(\r\n          new Promise(resolve => {\r\n            console.log(\"executed :(\");\r\n            setTimeout(resolve, 20000);\r\n          }));\r\n        return http.request(\"/\")\r\n          .should.eventually.be.rejectedWith(Error, /timeout/);\r\n      });\r\n    });\r\n``` \r\n\r\nWhere \"executed :(\" is printed out to the console regardless."}}