{"action":"created","issue":{"url":"https://api.github.com/repos/recurly/recurly-js/issues/172","labels_url":"https://api.github.com/repos/recurly/recurly-js/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/recurly/recurly-js/issues/172/comments","events_url":"https://api.github.com/repos/recurly/recurly-js/issues/172/events","html_url":"https://github.com/recurly/recurly-js/issues/172","id":53643496,"number":172,"title":"How to set the pricing API timeout?","user":{"login":"thbar","id":10141,"avatar_url":"https://avatars.githubusercontent.com/u/10141?v=3","gravatar_id":"","url":"https://api.github.com/users/thbar","html_url":"https://github.com/thbar","followers_url":"https://api.github.com/users/thbar/followers","following_url":"https://api.github.com/users/thbar/following{/other_user}","gists_url":"https://api.github.com/users/thbar/gists{/gist_id}","starred_url":"https://api.github.com/users/thbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thbar/subscriptions","organizations_url":"https://api.github.com/users/thbar/orgs","repos_url":"https://api.github.com/users/thbar/repos","events_url":"https://api.github.com/users/thbar/events{/privacy}","received_events_url":"https://api.github.com/users/thbar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-07T15:26:51Z","updated_at":"2015-01-08T19:03:52Z","closed_at":null,"body":"While doing offline work, I noticed that it took exactly 60 seconds for the `catch` function to be called by the Pricing module. I grepped the recurly-js source code and found the `60000` timeout.\r\n\r\nIt doesn't look like `Recurly.prototype.configure` support passing this as a value. Is there another way currently, or is that something that could be included into the library?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/recurly/recurly-js/issues/comments/69230373","html_url":"https://github.com/recurly/recurly-js/issues/172#issuecomment-69230373","issue_url":"https://api.github.com/repos/recurly/recurly-js/issues/172","id":69230373,"user":{"login":"chrissrogers","id":569270,"avatar_url":"https://avatars.githubusercontent.com/u/569270?v=3","gravatar_id":"","url":"https://api.github.com/users/chrissrogers","html_url":"https://github.com/chrissrogers","followers_url":"https://api.github.com/users/chrissrogers/followers","following_url":"https://api.github.com/users/chrissrogers/following{/other_user}","gists_url":"https://api.github.com/users/chrissrogers/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissrogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissrogers/subscriptions","organizations_url":"https://api.github.com/users/chrissrogers/orgs","repos_url":"https://api.github.com/users/chrissrogers/repos","events_url":"https://api.github.com/users/chrissrogers/events{/privacy}","received_events_url":"https://api.github.com/users/chrissrogers/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T19:03:52Z","updated_at":"2015-01-08T19:03:52Z","body":"Yeah, this feature is undocumented since it isn't the mos graceful method of timing out around jsonp. If you're using our xhr+cors request routines, it is much more graceful. You can simply pass a `timeout` property into `recurly.configure` and it will be added to the config object. You shouldn't expect any side effects.\r\n\r\nHere are the request routines that use the timeout: [xhr](https://github.com/recurly/recurly-js/blob/master/lib/recurly.js#L175), [jsonp](https://github.com/recurly/recurly-js/blob/master/lib/recurly.js#L223)\r\n\r\nOnce we switch over entirely to xhr+cors, we will expose this in the docs, as I will be morecomfortable with the timeout procedure."}}