#stripe_connect_platform - Oauth

1 messages · Page 1 of 1 (latest)

hollow pecan
#

Hi!

obsidian wren
#

Hi.

#

Gotta run in the second. Haven't touched our Oauth2 code in a year and seeing this error in development. We are passing in everything.

#

response = HTTParty.post(uri, :body => { :client_secret => "#{platforms_secret_key}", :code => code, :grant_type => "authorization_code" }.to_json, :headers => { 'Content-Type' => 'application/json' } )

#

#<HTTParty::Response:0x7fa616861140 parsed_response={"error"=>{"message"=>"You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.", "type"=>"invalid_request_error"}}, @response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>, @headers={"server"=>["nginx"], "date"=>["Thu, 14 Apr 2022 19:30:44 GMT"], "content-type"=>["application/json"], "content-length"=>["343"], "connection"=>["close"], "access-control-allow-credentials"=>["true"], "access-control-allow-methods"=>["GET, POST, HEAD, OPTIONS, DELETE"], "access-control-allow-origin"=>["*"], "access-control-expose-headers"=>["Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required"], "access-control-max-age"=>["300"], "cache-control"=>["no-cache, no-store"], "www-authenticate"=>["Basic realm="Stripe""]}>

#

Sadly I must run. Just checking if you guys updating anything or now requiring something other than what we are passing in????

hollow pecan
#

Taking a look here

obsidian wren
#

ok

#

sorry must run will try again later

hollow pecan
#

Could you share a request id with us?

obsidian wren
#

cant locate it in either account. 😦

hollow pecan
#

that makes sense.. If you need to run here I think the best option is to write in to support, https://support.stripe.com/?contact with more context so we can further dig into this.