{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/findmypast/vaultex/pulls/18","id":175090592,"html_url":"https://github.com/findmypast/vaultex/pull/18","diff_url":"https://github.com/findmypast/vaultex/pull/18.diff","patch_url":"https://github.com/findmypast/vaultex/pull/18.patch","issue_url":"https://api.github.com/repos/findmypast/vaultex/issues/18","number":18,"state":"closed","locked":false,"title":"Fix error reporting reason","user":{"login":"mmrobins","id":9961,"avatar_url":"https://avatars0.githubusercontent.com/u/9961?v=4","gravatar_id":"","url":"https://api.github.com/users/mmrobins","html_url":"https://github.com/mmrobins","followers_url":"https://api.github.com/users/mmrobins/followers","following_url":"https://api.github.com/users/mmrobins/following{/other_user}","gists_url":"https://api.github.com/users/mmrobins/gists{/gist_id}","starred_url":"https://api.github.com/users/mmrobins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmrobins/subscriptions","organizations_url":"https://api.github.com/users/mmrobins/orgs","repos_url":"https://api.github.com/users/mmrobins/repos","events_url":"https://api.github.com/users/mmrobins/events{/privacy}","received_events_url":"https://api.github.com/users/mmrobins/received_events","type":"User","site_admin":false},"body":"Instead of trying to stringify error reason\n\n    iex(2)> Vaultex.Client.auth(:token, {token})\n    ** (exit) exited in: GenServer.call(:vaultex, {:auth, :token, {\"0578e717-b211-9c2b-6784-0530564659d1\"}}, 5000)\n        ** (EXIT) an exception was raised:\n            ** (Protocol.UndefinedError) protocol String.Chars not implemented for {:tls_alert, 'unknown ca'}. This protocol is implemented for: Atom, BitString, Date, DateTime, Decimal, Ecto.Date, Ecto.DateTime, Ecto.Time, Float, Integer, List, Mariaex.Query, NaiveDateTime, Time, URI, Version, Version.Requirement\n                (elixir) /private/tmp/elixir-20180301-88311-1usjskt/elixir-1.6.2/lib/elixir/lib/string/chars.ex:3: String.Chars.impl_for!/1\n                (elixir) /private/tmp/elixir-20180301-88311-1usjskt/elixir-1.6.2/lib/elixir/lib/string/chars.ex:22: String.Chars.to_string/1\n                (vaultex) lib/vaultex/auth.ex:41: Vaultex.Auth.handle_response/2\n\nJust return reason as is\n\n    iex(2)> Vaultex.Client.auth(:token, {token})\n    {:error,\n     [\n       \"Bad response from vault [https://vault.example.com:8200/v1/]\",\n       {:tls_alert, 'unknown ca'}\n     ]}","created_at":"2018-03-14T21:29:39Z","updated_at":"2018-03-15T08:08:14Z","closed_at":"2018-03-15T08:08:14Z","merged_at":"2018-03-15T08:08:14Z","merge_commit_sha":"a64d1a7f6a3f41b9647755d90e1bf41ff2dd5621","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/findmypast/vaultex/pulls/18/commits","review_comments_url":"https://api.github.com/repos/findmypast/vaultex/pulls/18/comments","review_comment_url":"https://api.github.com/repos/findmypast/vaultex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/findmypast/vaultex/issues/18/comments","statuses_url":"https://api.github.com/repos/findmypast/vaultex/statuses/3049fca1335d3c4d4b30479764322ce0f5e4402e","head":{"label":"mmrobins:reason_error","ref":"reason_error","sha":"3049fca1335d3c4d4b30479764322ce0f5e4402e","user":{"login":"mmrobins","id":9961,"avatar_url":"https://avatars0.githubusercontent.com/u/9961?v=4","gravatar_id":"","url":"https://api.github.com/users/mmrobins","html_url":"https://github.com/mmrobins","followers_url":"https://api.github.com/users/mmrobins/followers","following_url":"https://api.github.com/users/mmrobins/following{/other_user}","gists_url":"https://api.github.com/users/mmrobins/gists{/gist_id}","starred_url":"https://api.github.com/users/mmrobins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmrobins/subscriptions","organizations_url":"https://api.github.com/users/mmrobins/orgs","repos_url":"https://api.github.com/users/mmrobins/repos","events_url":"https://api.github.com/users/mmrobins/events{/privacy}","received_events_url":"https://api.github.com/users/mmrobins/received_events","type":"User","site_admin":false},"repo":{"id":125275838,"name":"vaultex","full_name":"mmrobins/vaultex","owner":{"login":"mmrobins","id":9961,"avatar_url":"https://avatars0.githubusercontent.com/u/9961?v=4","gravatar_id":"","url":"https://api.github.com/users/mmrobins","html_url":"https://github.com/mmrobins","followers_url":"https://api.github.com/users/mmrobins/followers","following_url":"https://api.github.com/users/mmrobins/following{/other_user}","gists_url":"https://api.github.com/users/mmrobins/gists{/gist_id}","starred_url":"https://api.github.com/users/mmrobins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmrobins/subscriptions","organizations_url":"https://api.github.com/users/mmrobins/orgs","repos_url":"https://api.github.com/users/mmrobins/repos","events_url":"https://api.github.com/users/mmrobins/events{/privacy}","received_events_url":"https://api.github.com/users/mmrobins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmrobins/vaultex","description":"HashiCorp Vault client for Elixir.","fork":true,"url":"https://api.github.com/repos/mmrobins/vaultex","forks_url":"https://api.github.com/repos/mmrobins/vaultex/forks","keys_url":"https://api.github.com/repos/mmrobins/vaultex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmrobins/vaultex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmrobins/vaultex/teams","hooks_url":"https://api.github.com/repos/mmrobins/vaultex/hooks","issue_events_url":"https://api.github.com/repos/mmrobins/vaultex/issues/events{/number}","events_url":"https://api.github.com/repos/mmrobins/vaultex/events","assignees_url":"https://api.github.com/repos/mmrobins/vaultex/assignees{/user}","branches_url":"https://api.github.com/repos/mmrobins/vaultex/branches{/branch}","tags_url":"https://api.github.com/repos/mmrobins/vaultex/tags","blobs_url":"https://api.github.com/repos/mmrobins/vaultex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmrobins/vaultex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmrobins/vaultex/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmrobins/vaultex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmrobins/vaultex/statuses/{sha}","languages_url":"https://api.github.com/repos/mmrobins/vaultex/languages","stargazers_url":"https://api.github.com/repos/mmrobins/vaultex/stargazers","contributors_url":"https://api.github.com/repos/mmrobins/vaultex/contributors","subscribers_url":"https://api.github.com/repos/mmrobins/vaultex/subscribers","subscription_url":"https://api.github.com/repos/mmrobins/vaultex/subscription","commits_url":"https://api.github.com/repos/mmrobins/vaultex/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmrobins/vaultex/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmrobins/vaultex/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmrobins/vaultex/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmrobins/vaultex/contents/{+path}","compare_url":"https://api.github.com/repos/mmrobins/vaultex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmrobins/vaultex/merges","archive_url":"https://api.github.com/repos/mmrobins/vaultex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmrobins/vaultex/downloads","issues_url":"https://api.github.com/repos/mmrobins/vaultex/issues{/number}","pulls_url":"https://api.github.com/repos/mmrobins/vaultex/pulls{/number}","milestones_url":"https://api.github.com/repos/mmrobins/vaultex/milestones{/number}","notifications_url":"https://api.github.com/repos/mmrobins/vaultex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmrobins/vaultex/labels{/name}","releases_url":"https://api.github.com/repos/mmrobins/vaultex/releases{/id}","deployments_url":"https://api.github.com/repos/mmrobins/vaultex/deployments","created_at":"2018-03-14T21:29:25Z","updated_at":"2018-03-14T21:29:27Z","pushed_at":"2018-03-14T21:30:18Z","git_url":"git://github.com/mmrobins/vaultex.git","ssh_url":"git@github.com:mmrobins/vaultex.git","clone_url":"https://github.com/mmrobins/vaultex.git","svn_url":"https://github.com/mmrobins/vaultex","homepage":"","size":273,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"findmypast:master","ref":"master","sha":"59c82a3664ed27b89ce16d82262adf308dd42b52","user":{"login":"findmypast","id":9417510,"avatar_url":"https://avatars0.githubusercontent.com/u/9417510?v=4","gravatar_id":"","url":"https://api.github.com/users/findmypast","html_url":"https://github.com/findmypast","followers_url":"https://api.github.com/users/findmypast/followers","following_url":"https://api.github.com/users/findmypast/following{/other_user}","gists_url":"https://api.github.com/users/findmypast/gists{/gist_id}","starred_url":"https://api.github.com/users/findmypast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/findmypast/subscriptions","organizations_url":"https://api.github.com/users/findmypast/orgs","repos_url":"https://api.github.com/users/findmypast/repos","events_url":"https://api.github.com/users/findmypast/events{/privacy}","received_events_url":"https://api.github.com/users/findmypast/received_events","type":"Organization","site_admin":false},"repo":{"id":63238400,"name":"vaultex","full_name":"findmypast/vaultex","owner":{"login":"findmypast","id":9417510,"avatar_url":"https://avatars0.githubusercontent.com/u/9417510?v=4","gravatar_id":"","url":"https://api.github.com/users/findmypast","html_url":"https://github.com/findmypast","followers_url":"https://api.github.com/users/findmypast/followers","following_url":"https://api.github.com/users/findmypast/following{/other_user}","gists_url":"https://api.github.com/users/findmypast/gists{/gist_id}","starred_url":"https://api.github.com/users/findmypast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/findmypast/subscriptions","organizations_url":"https://api.github.com/users/findmypast/orgs","repos_url":"https://api.github.com/users/findmypast/repos","events_url":"https://api.github.com/users/findmypast/events{/privacy}","received_events_url":"https://api.github.com/users/findmypast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/findmypast/vaultex","description":"HashiCorp Vault client for Elixir.","fork":false,"url":"https://api.github.com/repos/findmypast/vaultex","forks_url":"https://api.github.com/repos/findmypast/vaultex/forks","keys_url":"https://api.github.com/repos/findmypast/vaultex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/findmypast/vaultex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/findmypast/vaultex/teams","hooks_url":"https://api.github.com/repos/findmypast/vaultex/hooks","issue_events_url":"https://api.github.com/repos/findmypast/vaultex/issues/events{/number}","events_url":"https://api.github.com/repos/findmypast/vaultex/events","assignees_url":"https://api.github.com/repos/findmypast/vaultex/assignees{/user}","branches_url":"https://api.github.com/repos/findmypast/vaultex/branches{/branch}","tags_url":"https://api.github.com/repos/findmypast/vaultex/tags","blobs_url":"https://api.github.com/repos/findmypast/vaultex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/findmypast/vaultex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/findmypast/vaultex/git/refs{/sha}","trees_url":"https://api.github.com/repos/findmypast/vaultex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/findmypast/vaultex/statuses/{sha}","languages_url":"https://api.github.com/repos/findmypast/vaultex/languages","stargazers_url":"https://api.github.com/repos/findmypast/vaultex/stargazers","contributors_url":"https://api.github.com/repos/findmypast/vaultex/contributors","subscribers_url":"https://api.github.com/repos/findmypast/vaultex/subscribers","subscription_url":"https://api.github.com/repos/findmypast/vaultex/subscription","commits_url":"https://api.github.com/repos/findmypast/vaultex/commits{/sha}","git_commits_url":"https://api.github.com/repos/findmypast/vaultex/git/commits{/sha}","comments_url":"https://api.github.com/repos/findmypast/vaultex/comments{/number}","issue_comment_url":"https://api.github.com/repos/findmypast/vaultex/issues/comments{/number}","contents_url":"https://api.github.com/repos/findmypast/vaultex/contents/{+path}","compare_url":"https://api.github.com/repos/findmypast/vaultex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/findmypast/vaultex/merges","archive_url":"https://api.github.com/repos/findmypast/vaultex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/findmypast/vaultex/downloads","issues_url":"https://api.github.com/repos/findmypast/vaultex/issues{/number}","pulls_url":"https://api.github.com/repos/findmypast/vaultex/pulls{/number}","milestones_url":"https://api.github.com/repos/findmypast/vaultex/milestones{/number}","notifications_url":"https://api.github.com/repos/findmypast/vaultex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/findmypast/vaultex/labels{/name}","releases_url":"https://api.github.com/repos/findmypast/vaultex/releases{/id}","deployments_url":"https://api.github.com/repos/findmypast/vaultex/deployments","created_at":"2016-07-13T10:50:00Z","updated_at":"2018-02-21T04:04:06Z","pushed_at":"2018-03-15T08:08:14Z","git_url":"git://github.com/findmypast/vaultex.git","ssh_url":"git@github.com:findmypast/vaultex.git","clone_url":"https://github.com/findmypast/vaultex.git","svn_url":"https://github.com/findmypast/vaultex","homepage":"","size":312,"stargazers_count":35,"watchers_count":35,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":16,"open_issues":0,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/findmypast/vaultex/pulls/18"},"html":{"href":"https://github.com/findmypast/vaultex/pull/18"},"issue":{"href":"https://api.github.com/repos/findmypast/vaultex/issues/18"},"comments":{"href":"https://api.github.com/repos/findmypast/vaultex/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/findmypast/vaultex/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/findmypast/vaultex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/findmypast/vaultex/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/findmypast/vaultex/statuses/3049fca1335d3c4d4b30479764322ce0f5e4402e"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"AtebMT","id":13733149,"avatar_url":"https://avatars2.githubusercontent.com/u/13733149?v=4","gravatar_id":"","url":"https://api.github.com/users/AtebMT","html_url":"https://github.com/AtebMT","followers_url":"https://api.github.com/users/AtebMT/followers","following_url":"https://api.github.com/users/AtebMT/following{/other_user}","gists_url":"https://api.github.com/users/AtebMT/gists{/gist_id}","starred_url":"https://api.github.com/users/AtebMT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtebMT/subscriptions","organizations_url":"https://api.github.com/users/AtebMT/orgs","repos_url":"https://api.github.com/users/AtebMT/repos","events_url":"https://api.github.com/users/AtebMT/events{/privacy}","received_events_url":"https://api.github.com/users/AtebMT/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":14,"deletions":9,"changed_files":5}}
{"actor":{"display_login":"AtebMT"}}