#masud_api

1 messages ยท Page 1 of 1 (latest)

vast wrenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1227266815466405908

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

arctic questBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

rich lance
#

Hello

modest pawn
#

๐Ÿ‘‹

rich lance
#

Do you have a request ID for that error?

modest pawn
#

I don't see a request ID for it on the logs. I also tried to find his account under the Connect accounts, but nothing there either. I don't think it fully connected or possibly connected => disconnected shortly after.

rich lance
#

Yep okay that's what I see as well

#

Looks like you are using Oauth here

modest pawn
#

Yes

rich lance
#

Okay yeah I'm seeing an indication that your platform consumed the same Oauth Token twice. This leads to a disconnect of the Connected Account when this occurs.

#

So you'll need to reconnect that account and ensure that you are only handling that OAuth Token a single time

modest pawn
#

I told him to reconnect again.

rich lance
#

So you may want to add some logs to see why that is getting duplicated here. But if you call that stripe.oauth.token API twice with the same auth code then it connects the account the first time and disconnects the account the second time.

modest pawn
#

Got it, thanks for the info! Where did you find this info on the stripe dashboard logs? I'd like to see it to see if other users got the same issue and so I can recreate it.

rich lance
#

It won't show in the Platform Dashboard logs as that OAuth Token request isn't logged there -- we have internal logs that indicate when this happens. If you listen for the account.application.authorized and account.application.deauthorized Events via a Connect Webhook endpoint (https://docs.stripe.com/connect/webhooks) then you would receive those Events in quick succession to know when this occurs.

#

You should also be able to reproduce it pretty easily with a test mode account by consuming the OAuth token twice

#

But yeah there isn't really a way to backward track this. If you are tracking account IDs in your own database then you could list out Connected Accounts and compare