{"action":"created","issue":{"url":"https://api.github.com/repos/inaka/hexer/issues/28","labels_url":"https://api.github.com/repos/inaka/hexer/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/inaka/hexer/issues/28/comments","events_url":"https://api.github.com/repos/inaka/hexer/issues/28/events","html_url":"https://github.com/inaka/hexer/issues/28","id":125781464,"number":28,"title":"Badmatch error when attempting to authenticate using a correct username and password","user":{"login":"Stratus3D","id":1520926,"avatar_url":"https://avatars.githubusercontent.com/u/1520926?v=3","gravatar_id":"","url":"https://api.github.com/users/Stratus3D","html_url":"https://github.com/Stratus3D","followers_url":"https://api.github.com/users/Stratus3D/followers","following_url":"https://api.github.com/users/Stratus3D/following{/other_user}","gists_url":"https://api.github.com/users/Stratus3D/gists{/gist_id}","starred_url":"https://api.github.com/users/Stratus3D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stratus3D/subscriptions","organizations_url":"https://api.github.com/users/Stratus3D/orgs","repos_url":"https://api.github.com/users/Stratus3D/repos","events_url":"https://api.github.com/users/Stratus3D/events{/privacy}","received_events_url":"https://api.github.com/users/Stratus3D/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-09T21:10:40Z","updated_at":"2016-01-10T04:25:30Z","closed_at":null,"body":"I am using hexer with hexer.mk. I installed hexer.mk and I attempted to authenticate with my hex user account but I kept getting an error:\r\n\r\n    Username: Stratus3D\r\n    Password: -\r\n    Generating API key...\r\n    Error: Generation of API key failed ({badmatch,\r\n                                      #{timeout => 5000,\r\n                                        handle_event => undefined,\r\n                                        headers => [{<<\"Authorization\">>,\r\n                                          <<\"Basic U3RyYXR1czNEOmdtYWtlcl43\">>},\r\n                                         {<<\"Accept\">>,\r\n                                          <<\"application/vnd.hex+erlang\">>},\r\n                                         {<<\"Content-Type\">>,\r\n                                          <<\"application/vnd.hex+erlang\">>}],\r\n                                        async => false,\r\n                                        async_mode => binary}})\r\n\r\nI assumed this was due to an incorrect password, so I logged out and then logged in again with the same account on an Elixir project. I was able to authenticate using mix with the username and password I had been using. The error that was printed to STDOUT was the same regardless of whether the username/password combination was correct or not."},"comment":{"url":"https://api.github.com/repos/inaka/hexer/issues/comments/170313467","html_url":"https://github.com/inaka/hexer/issues/28#issuecomment-170313467","issue_url":"https://api.github.com/repos/inaka/hexer/issues/28","id":170313467,"user":{"login":"elbrujohalcon","id":93657,"avatar_url":"https://avatars.githubusercontent.com/u/93657?v=3","gravatar_id":"","url":"https://api.github.com/users/elbrujohalcon","html_url":"https://github.com/elbrujohalcon","followers_url":"https://api.github.com/users/elbrujohalcon/followers","following_url":"https://api.github.com/users/elbrujohalcon/following{/other_user}","gists_url":"https://api.github.com/users/elbrujohalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/elbrujohalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbrujohalcon/subscriptions","organizations_url":"https://api.github.com/users/elbrujohalcon/orgs","repos_url":"https://api.github.com/users/elbrujohalcon/repos","events_url":"https://api.github.com/users/elbrujohalcon/events{/privacy}","received_events_url":"https://api.github.com/users/elbrujohalcon/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T04:25:30Z","updated_at":"2016-01-10T04:25:30Z","body":"@Stratus3D You should probably change your password on hex, since it's kinda visible now in the description of this issue. In any case, you can check the password that's sent as part of the authentication (`U3RyYXR1czNEOmdtYWtlcl43` is in base64) to see if hexer is sending the proper characters to hex.pm\r\nAnd I repeat: you should change your password now.\r\n\r\nPlease let us know what you find, we'll be investigating ourselves as well, but it works with our user. My feeling is that special characters are not correctly managed by either the shell, hexer, base64 or shotgun"}}