#chlo_error
1 messages ยท Page 1 of 1 (latest)
๐ 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/1410692205655625759
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! taking a look now
what version of stripe.js are you using?
also any chance you have noticed any patterns on who is seeing this? anything in terms of:
- browser
- location
- overall rates of errors
Hello !
I have version 7.1.0 of stripe.js
Unfortunately I see no pattern. I have the issue on Windows, iOS, Android, using Chrome and Safari...
At first, I thought it was only clients losing internet, but as the rest of the page loads, it seems a bit weird
Unfortunately, I could only reproduce it by throttlingthe network from 3G to no internet
here are the stats I get from Sentry if it can help !
Hi ๐
I'm stepping in as my colleague has to go soon
Okay can you reproduce the errors yourself?
Only when cuting the network while the page is loading
Do you have a publicly acessible test mode front-end where I can validate this?
could it be very quick internet loss that the clients are having but with no retry it does not reload with the rest of the page ?
Yes is the prod version ok ?
For the embedded Checkout session we don't have a retry mechanism but TBH I've never heard of a momemtary outage causing this kind of issue
https://joinsezame.com/hotel/Les-Elmes-7j1qxE6/activity/LArt-du-Soin-Marin-OdGFfE3/book
You can click on any date then "continue" > "go as guest"
you will end up on the checkout page with the embedded checkout !
Yep I see it
Could it be an implementation error from my side ? Did anyone else in the world had similar issues ? ๐
The page still loads even when I throttle my network to 3G
Let me see if we have some events you can respond to in Stripe.js
Quick question, when it comes to initializing Checkout, are you using the static clientSecret parameter or the fetchClientSecret method parameter?
static clientSecret that is in our URL
when you click "go guest" I create the stripe checkout session and redirect to /checkout with the client id in URL
Got it. Unfortunately I'm still not able to reproduce any load errors.
honestly our clients are not the best at reporting issues so I do not know how this happened exactly, as I did not succeed to reproduce it
But do you have a suggestion on how I can handle this (instead of preventing it) ?
I could display a "retry" button or something like that
Is there any best practice?
I could only reproduce when cutting off the internet (= throttling from 3G to offline) while the page was loading
Do you have dev environment where you can test this out?
I have the error almost every day, 1 to 6 times
This is not a lot but still I would like to offer a better experience to those clients to avoid losing them
yes we do have a dev environment
I think you should be able to add an a listener to the 'change' event we describe here
I would start there and see if we emit a change event when this fails to load that you can react to
As a back-stop, I think a Refresh button that just tries to re-init the Checkout session on the page using the secret would be a smart next step
Ok thanks I will look at this doc !