{"action":"created","issue":{"url":"https://api.github.com/repos/findmypast/usher/issues/24","repository_url":"https://api.github.com/repos/findmypast/usher","labels_url":"https://api.github.com/repos/findmypast/usher/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/findmypast/usher/issues/24/comments","events_url":"https://api.github.com/repos/findmypast/usher/issues/24/events","html_url":"https://github.com/findmypast/usher/pull/24","id":154680060,"number":24,"title":"Sleep optional dependecy","user":{"login":"sashman","id":905730,"avatar_url":"https://avatars.githubusercontent.com/u/905730?v=3","gravatar_id":"","url":"https://api.github.com/users/sashman","html_url":"https://github.com/sashman","followers_url":"https://api.github.com/users/sashman/followers","following_url":"https://api.github.com/users/sashman/following{/other_user}","gists_url":"https://api.github.com/users/sashman/gists{/gist_id}","starred_url":"https://api.github.com/users/sashman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashman/subscriptions","organizations_url":"https://api.github.com/users/sashman/orgs","repos_url":"https://api.github.com/users/sashman/repos","events_url":"https://api.github.com/users/sashman/events{/privacy}","received_events_url":"https://api.github.com/users/sashman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-13T10:20:10Z","updated_at":"2016-05-13T10:22:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/findmypast/usher/pulls/24","html_url":"https://github.com/findmypast/usher/pull/24","diff_url":"https://github.com/findmypast/usher/pull/24.diff","patch_url":"https://github.com/findmypast/usher/pull/24.patch"},"body":"Wrapping require in a try catch and then null checking as the npm guide suggests. I have only wrapped the sleeping functionality which means that the reties will still happen. I can wrap the entire retry mechanic however if that makes more sense to do?"},"comment":{"url":"https://api.github.com/repos/findmypast/usher/issues/comments/219006652","html_url":"https://github.com/findmypast/usher/pull/24#issuecomment-219006652","issue_url":"https://api.github.com/repos/findmypast/usher/issues/24","id":219006652,"user":{"login":"jbachhardie","id":15980161,"avatar_url":"https://avatars.githubusercontent.com/u/15980161?v=3","gravatar_id":"","url":"https://api.github.com/users/jbachhardie","html_url":"https://github.com/jbachhardie","followers_url":"https://api.github.com/users/jbachhardie/followers","following_url":"https://api.github.com/users/jbachhardie/following{/other_user}","gists_url":"https://api.github.com/users/jbachhardie/gists{/gist_id}","starred_url":"https://api.github.com/users/jbachhardie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbachhardie/subscriptions","organizations_url":"https://api.github.com/users/jbachhardie/orgs","repos_url":"https://api.github.com/users/jbachhardie/repos","events_url":"https://api.github.com/users/jbachhardie/events{/privacy}","received_events_url":"https://api.github.com/users/jbachhardie/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T10:22:36Z","updated_at":"2016-05-13T10:22:36Z","body":"Nice. It even falls back to non-delay retries, which is way cleaner than the hack I had envisioned. :+1: "}}