#stripe_connect_platform - Oauth
1 messages · Page 1 of 1 (latest)
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""]}>
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sadly I must run. Just checking if you guys updating anything or now requiring something other than what we are passing in????
Taking a look here
Could you share a request id with us?
cant locate it in either account. 😦
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.