I'm working on Ruby on Rails with the OmniAuth-StripeConnect Gem, and every time I try to connect to the Stripe Connect API I get this failure in authentication, 'redirecting' me to the failure method of the Omniauth callback controller :
E, [2018-05-28T13:41:50.435158 #58778] ERROR -- omniauth (stripe_connect) Authentication failure! invalid_credentials: OAuth2::Error, invalid_client: No such API key: Bearer
{
"error": "invalid_client",
"error_description": "No such API key: Bearer"
}
I found in the doc that an error of invalid_client
meant either one of these :
https://stripe.com/docs/connect/oauth-reference#post-deauthorize-error-codes
client_id
does not belong to youstripe_user_id
does not exist or is not connect to your application- API key mode (live or test mode) does not match the
client_id
mode
But i doubled checked and it's none of these.
Does anyone has an idea ?