#steven_code
1 messages ยท Page 1 of 1 (latest)
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.
- steven_docs, 4 days ago, 9 messages
๐ 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/1239372707146240011
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could you share the request ID (req_xxx) of the error?
do you know where I can find it? i cannot seem to find it under Developer Logs
If itโs not found in developer logs, could you share your account ID, so that I can check the logs internally?
acct_1OJVIHD3pUreumEP
I don't find any request history associated to your account on this endpoint. Can you share the full response that you log under Full Stripe Response?
that is very weird, it didn't recive a response. this is what I received
Function execution started
2024-05-13 10:22:55.989 AEST
stripeOAuthhwslp6p3v5qf Received code: XXXXX (idk if I should be revealing this)
2024-05-13 10:22:55.989 AEST
stripeOAuthhwslp6p3v5qf Received state: sKq8bICcZuMCiVismEfp
2024-05-13 10:22:56.144 AEST
stripeOAuthhwslp6p3v5qf Function execution took 158 ms, finished with status code: 500
in the past when we were testing, it had the following logs
Function execution started
2024-05-10 00:03:08.422 AEST
stripeOAuthr048zuygkzqx Received code: XXXX
2024-05-10 00:03:08.422 AEST
stripeOAuthr048zuygkzqx Received state: 7n0liFSEtyLTjIaNAzaX
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx Full Stripe Response: {
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx "access_token": "XXXXXX",
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx "livemode": true,
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx "refresh_token": "XXXXX",
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx "token_type": "bearer",
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx "stripe_publishable_key": "XXXXXX",
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx "stripe_user_id": "acct_15F9LDHjVuCTm20n",
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx "scope": "read_write"
2024-05-10 00:03:08.916 AEST
stripeOAuthr048zuygkzqx }
2024-05-10 00:03:09.689 AEST
stripeOAuthr048zuygkzqx New Stripe account added to the stripeAccounts subcollection
2024-05-10 00:03:09.699 AEST
stripeOAuthr048zuygkzqx Function execution took 1290 ms, finished with status code: 302
Thanks for sharing! I'd recommend removing authorization code just to be safe (even though it can only be used once and will get expired after 5 mins)
thanks for the tip ๐
I'm still trying to check if I can find anything
it's weird there's no log of requests...
At data.error if case, can you log the full data? Not just data.error_description?
sure, let me do it now.
this is the new code and im still getting the same error
I think it is the Last line that is triggering
} catch (error) {
res.status(500).send(Server Error: ${error});
}
});
In the past 24 hours, there is no request history made on /oauth/token on acct_1OJVIHD3pUreumEP. The request likely didn't make to Stripe and the error wasn't returned from Stripe, but somewhere within your server
okay, interesting. I manually entered the link to my browser https://connect.stripe.com/oauth/v2/authorize?response_type=code&client_id=ca_P7l0bYOX7xyIO7YDoQDaGITZbO3guYuX&scope=read_write&state=sKq8bICcZuMCiVismEfp
not from the app, and the same issue occurred. Is there a way to diagnose this?
removing v2 still doesn't work...
What issue did you face? When I clicked the link, the URL loaded fine for me
yes, it's when I connect an existing Stripe account
it shows redirecting..and then boom:
Server Error: FetchError: invalid json response body at https://connect.stripe.com/oauth/token reason: Unexpected token S in JSON at position 0
and no data was logged related to the connected account
What is the connected account ID (acct_xxx) you attempted to connected from?
From https://docs.stripe.com/connect/oauth-reference:
Starting in June 2021, Platforms using OAuth with read_write scope wonโt be able to connect to accounts that are controlled by another platform.
I'm wondering if this is the reason
I'm unable to find out what causes the error. Can I suggest you writing to Support https://support.stripe.com/contact with the video of the error when you attempt to connect and account ID (both platform and connected account), so that we can check with the relevant team?
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.