Created
June 12, 2017 10:45
-
-
Save ngw/c631ac1be3207614ea79671aa6a4f72c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[debug] Processing by Hedging.AuthController.request/2 | |
Parameters: %{"provider" => "fitzdares"} | |
Pipelines: [:browser] | |
[info] Sent 302 in 29ms | |
[debug] Hedging.AuthController halted in Ueberauth.call/2 | |
[info] GET /auth/fitzdares/callback | |
[debug] Processing by Hedging.AuthController.callback/2 | |
Parameters: %{"code" => "2acfb85bc578d608cc906a244bffc8b96202f7a6557f26609273cbea4c0e2c29", "provider" => "fitzdares"} | |
Pipelines: [:browser] | |
%OAuth2.Client{authorize_url: "http://localhost:3000/oauth/authorize", | |
client_id: "9e382aae12f43dc6ae767e1b9a15de2f0b08837536109155f28c5392fbb58c34", | |
client_secret: "a7c0d53db32622482c6aa2ddab159dbea8d9a37d2fd09518cc2e0ec85660ec4cs", | |
headers: [], params: %{}, | |
redirect_uri: "http://localhost:4000/auth/fitzdares/callback", ref: nil, | |
request_opts: [], site: "http://localhost:3000", | |
strategy: Ueberauth.Strategy.Fitzdares.OAuth, token: nil, token_method: :post, | |
token_url: "http://localhost:3000/oauth/token"} | |
%OAuth2.Client{authorize_url: "http://localhost:3000/oauth/authorize", | |
client_id: "9e382aae12f43dc6ae767e1b9a15de2f0b08837536109155f28c5392fbb58c34", | |
client_secret: "a7c0d53db32622482c6aa2ddab159dbea8d9a37d2fd09518cc2e0ec85660ec4cs", | |
headers: [{"content-type", "application/x-www-form-urlencoded"}, | |
{"accept", "application/json"}], | |
params: %{"client_id" => "9e382aae12f43dc6ae767e1b9a15de2f0b08837536109155f28c5392fbb58c34", | |
"client_secret" => "a7c0d53db32622482c6aa2ddab159dbea8d9a37d2fd09518cc2e0ec85660ec4cs", | |
"code" => "2acfb85bc578d608cc906a244bffc8b96202f7a6557f26609273cbea4c0e2c29", | |
"grant_type" => "authorization_code", | |
"redirect_uri" => "http://localhost:4000/auth/fitzdares/callback"}, | |
redirect_uri: "http://localhost:4000/auth/fitzdares/callback", ref: nil, | |
request_opts: [], site: "http://localhost:3000", | |
strategy: Ueberauth.Strategy.Fitzdares.OAuth, token: nil, token_method: :post, | |
token_url: "http://localhost:3000/oauth/token"} | |
[hackney trace 80 <0.1009.0> 2017:06:12 10:36:40 4478] request | |
Content: [{module,hackney}, | |
{line,293}, | |
{method,post}, | |
{url,{hackney_url,hackney_tcp,http,<<"localhost:3000">>, | |
<<"/oauth/token">>,<<"/oauth/token">>,<<>>, | |
<<>>,"localhost",3000,<<>>,<<>>}}, | |
{headers,[{<<"content-type">>, | |
<<"application/x-www-form-urlencoded">>}, | |
{<<"accept">>,<<"application/json">>}]}, | |
{body,<<"client_id=9e382aae12f43dc6ae767e1b9a15de2f0b08837536109155f28c5392fbb58c34&client_secret=a7c0d53db32622482c6aa2ddab159dbea8d9a37d2fd09518cc2e0ec85660ec4cs&code=2acfb85bc578d608cc906a244bffc8b96202f7a6557f26609273cbea4c0e2c29&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Fauth%2Ffitzdares%2Fcallback">>}, | |
{options,[]}] | |
[hackney trace 60 <0.1009.0> 2017:06:12 10:36:40 4479] request without proxy | |
Content: [{module,hackney},{line,665}] | |
[hackney trace 60 <0.1009.0> 2017:06:12 10:36:40 4481] connect | |
Content: [{module,hackney_connect}, | |
{line,33}, | |
{transport,hackney_tcp}, | |
{host,"localhost"}, | |
{port,3000}, | |
{dynamic,true}] | |
[hackney trace 80 <0.1009.0> 2017:06:12 10:36:40 4486] no socket in the pool | |
Content: [{module,hackney_connect},{line,200},{pool,default}] | |
[hackney trace 80 <0.1009.0> 2017:06:12 10:36:40 4488] connect error | |
Content: [{module,hackney_connect},{line,262}] | |
iex(2)> [info] Sent 500 in 32ms | |
[error] #PID<0.1009.0> running Hedging.Endpoint terminated | |
Server: localhost:4000 (http) | |
Request: GET /auth/fitzdares/callback?code=2acfb85bc578d608cc906a244bffc8b96202f7a6557f26609273cbea4c0e2c29 | |
** (exit) an exception was raised: | |
** (OAuth2.Error) Connection refused | |
(oauth2) lib/oauth2/client.ex:251: OAuth2.Client.get_token!/4 | |
(ueberauth_fitzdares) lib/ueberauth/strategy/fitzdares/oauth.ex:39: Ueberauth.Strategy.Fitzdares.OAuth.get_token!/2 | |
(ueberauth_fitzdares) lib/ueberauth/strategy/fitzdares.ex:22: Ueberauth.Strategy.Fitzdares.handle_callback!/1 | |
(ueberauth) lib/ueberauth/strategy.ex:299: Ueberauth.Strategy.run_callback/2 | |
(hedging) web/controllers/auth_controller.ex:1: Hedging.AuthController.phoenix_controller_pipeline/2 | |
(hedging) lib/hedging/endpoint.ex:1: Hedging.Endpoint.instrument/4 | |
(hedging) lib/phoenix/router.ex:261: Hedging.Router.dispatch/2 | |
(hedging) web/router.ex:1: Hedging.Router.do_call/2 | |
(hedging) lib/hedging/endpoint.ex:1: Hedging.Endpoint.phoenix_pipeline/1 | |
(hedging) lib/plug/debugger.ex:123: Hedging.Endpoint."call (overridable 3)"/2 | |
(hedging) lib/hedging/endpoint.ex:1: Hedging.Endpoint.call/2 | |
(plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4 | |
(cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment