{"action":"created","issue":{"url":"https://api.github.com/repos/h2non/resilient-consul/issues/8","repository_url":"https://api.github.com/repos/h2non/resilient-consul","labels_url":"https://api.github.com/repos/h2non/resilient-consul/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/h2non/resilient-consul/issues/8/comments","events_url":"https://api.github.com/repos/h2non/resilient-consul/issues/8/events","html_url":"https://github.com/h2non/resilient-consul/pull/8","id":132382179,"number":8,"title":"Ensure mapServers is not called with URLs","user":{"login":"ismriv","id":752239,"avatar_url":"https://avatars.githubusercontent.com/u/752239?v=3","gravatar_id":"","url":"https://api.github.com/users/ismriv","html_url":"https://github.com/ismriv","followers_url":"https://api.github.com/users/ismriv/followers","following_url":"https://api.github.com/users/ismriv/following{/other_user}","gists_url":"https://api.github.com/users/ismriv/gists{/gist_id}","starred_url":"https://api.github.com/users/ismriv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismriv/subscriptions","organizations_url":"https://api.github.com/users/ismriv/orgs","repos_url":"https://api.github.com/users/ismriv/repos","events_url":"https://api.github.com/users/ismriv/events{/privacy}","received_events_url":"https://api.github.com/users/ismriv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-09T10:26:37Z","updated_at":"2016-02-09T11:39:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/h2non/resilient-consul/pulls/8","html_url":"https://github.com/h2non/resilient-consul/pull/8","diff_url":"https://github.com/h2non/resilient-consul/pull/8.diff","patch_url":"https://github.com/h2non/resilient-consul/pull/8.patch"},"body":"This fixes #7 where [resilient.js](https://github.com/resilient-http/resilient.js) calls the middleware function more than once, with the output of the previous invokation. The workaround is to check the type of the items in the response to only call `mapServers` with service objects, not URLs (strings)."},"comment":{"url":"https://api.github.com/repos/h2non/resilient-consul/issues/comments/181827996","html_url":"https://github.com/h2non/resilient-consul/pull/8#issuecomment-181827996","issue_url":"https://api.github.com/repos/h2non/resilient-consul/issues/8","id":181827996,"user":{"login":"ismriv","id":752239,"avatar_url":"https://avatars.githubusercontent.com/u/752239?v=3","gravatar_id":"","url":"https://api.github.com/users/ismriv","html_url":"https://github.com/ismriv","followers_url":"https://api.github.com/users/ismriv/followers","following_url":"https://api.github.com/users/ismriv/following{/other_user}","gists_url":"https://api.github.com/users/ismriv/gists{/gist_id}","starred_url":"https://api.github.com/users/ismriv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismriv/subscriptions","organizations_url":"https://api.github.com/users/ismriv/orgs","repos_url":"https://api.github.com/users/ismriv/repos","events_url":"https://api.github.com/users/ismriv/events{/privacy}","received_events_url":"https://api.github.com/users/ismriv/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T11:39:10Z","updated_at":"2016-02-09T11:39:10Z","body":"Fair enough, pushed a new commit and squashed it together with the previous."}}