schwarz/ueberauth_bnet

connect_timeout error in the callback phase

Closed this issue · 1 comments

Hi @schwarz and thank you for putting this strategy together, that's super helpful! I'm trying to implement it in a project but I keep getting a connect_timeout error during the callback phase and can't quite figure out what is going wrong.

The authorisation request seems to be fine but the subsequent access token request consistently returns this error (from the conn struct):

assigns: %{
    ueberauth_failure: %Ueberauth.Failure{
      errors: [
        %Ueberauth.Failure.Error{
          message: :connect_timeout,
          message_key: "OAuth2"
        }
      ],
      provider: :bnet,
      strategy: Ueberauth.Strategy.Bnet
    }
  }

Do you have any idea what could be going wrong here? I can see that the code in this package hasn't been update in a couple of years – could the API URLs be outdated?

I actually found the issue so I'll submit a pull request directly. 🙂