#chlo_error

1 messages ยท Page 1 of 1 (latest)

fleet perchBOT
#

๐Ÿ‘‹ 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.

amber drift
#

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:

  1. browser
  2. location
  3. overall rates of errors
eager crow
#

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

fleet perchBOT
eager crow
#

here are the stats I get from Sentry if it can help !

edgy oracle
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague has to go soon

#

Okay can you reproduce the errors yourself?

eager crow
#

Only when cuting the network while the page is loading

edgy oracle
#

Do you have a publicly acessible test mode front-end where I can validate this?

eager crow
#

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 ?

edgy oracle
#

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

eager crow
#

you will end up on the checkout page with the embedded checkout !

edgy oracle
#

Yep I see it

eager crow
#

Could it be an implementation error from my side ? Did anyone else in the world had similar issues ? ๐Ÿ˜†

edgy oracle
#

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?

eager crow
#

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

edgy oracle
#

Got it. Unfortunately I'm still not able to reproduce any load errors.

eager crow
#

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

edgy oracle
#

Do you have dev environment where you can test this out?

eager crow
#

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

edgy oracle
#

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

eager crow
#

Ok thanks I will look at this doc !