{"action":"created","issue":{"url":"https://api.github.com/repos/mgonto/restangular/issues/949","repository_url":"https://api.github.com/repos/mgonto/restangular","labels_url":"https://api.github.com/repos/mgonto/restangular/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/mgonto/restangular/issues/949/comments","events_url":"https://api.github.com/repos/mgonto/restangular/issues/949/events","html_url":"https://github.com/mgonto/restangular/issues/949","id":49825741,"number":949,"title":"RestAngular Timeout not working. still return and save data after timeout","user":{"login":"EvenOng","id":9279929,"avatar_url":"https://avatars.githubusercontent.com/u/9279929?v=3","gravatar_id":"","url":"https://api.github.com/users/EvenOng","html_url":"https://github.com/EvenOng","followers_url":"https://api.github.com/users/EvenOng/followers","following_url":"https://api.github.com/users/EvenOng/following{/other_user}","gists_url":"https://api.github.com/users/EvenOng/gists{/gist_id}","starred_url":"https://api.github.com/users/EvenOng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvenOng/subscriptions","organizations_url":"https://api.github.com/users/EvenOng/orgs","repos_url":"https://api.github.com/users/EvenOng/repos","events_url":"https://api.github.com/users/EvenOng/events{/privacy}","received_events_url":"https://api.github.com/users/EvenOng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-11-23T13:38:09Z","updated_at":"2016-06-18T00:18:50Z","closed_at":null,"body":"Hi, \r\n\r\nAs title, my api still return data or save data into database when it already timeout. \r\nI try 2 method also fail with 1 ms.\r\n\r\n```js\r\n1st method (apply to all):\r\n//inspect get got data too\r\nRestangularProvider.setBaseUrl(Url);\r\nRestangularProvider.setDefaultHttpFields({timeout: 1});\r\n \r\n\r\n2rd method (apply one to one)\r\nRestangularProvider.setBaseUrl(Url);\r\nvar apiProduct = Restangular.one('product', 'hardware').one('save');\r\n\r\n//put ~ still save after timeout with error return\r\napiProduct.withHttpConfig({timeout: 1}).customPUT(dataSendToApiJson).then(function(response){\r\n}\r\n\r\n//get  ~ can get data after timeout\r\napiProduct.withHttpConfig({timeout: 1}) .get().then(function(response){\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mgonto/restangular/issues/comments/226909437","html_url":"https://github.com/mgonto/restangular/issues/949#issuecomment-226909437","issue_url":"https://api.github.com/repos/mgonto/restangular/issues/949","id":226909437,"user":{"login":"daviesgeek","id":2348508,"avatar_url":"https://avatars.githubusercontent.com/u/2348508?v=3","gravatar_id":"","url":"https://api.github.com/users/daviesgeek","html_url":"https://github.com/daviesgeek","followers_url":"https://api.github.com/users/daviesgeek/followers","following_url":"https://api.github.com/users/daviesgeek/following{/other_user}","gists_url":"https://api.github.com/users/daviesgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/daviesgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviesgeek/subscriptions","organizations_url":"https://api.github.com/users/daviesgeek/orgs","repos_url":"https://api.github.com/users/daviesgeek/repos","events_url":"https://api.github.com/users/daviesgeek/events{/privacy}","received_events_url":"https://api.github.com/users/daviesgeek/received_events","type":"User","site_admin":false},"created_at":"2016-06-18T00:18:50Z","updated_at":"2016-06-18T00:18:50Z","body":"> timeout in milliseconds\r\n\r\nThe docs for `$http` explicitly state that the timeout is in ms\r\n\r\nI believe @kucharskimaciej is correct. @EvenOng can you confirm this?"}}
{"actor":{"display_login":"daviesgeek"}}