#bruno.goncalves.sq
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ sincere apologies for the delay, please bear with me a moment while I take a look.
I don't have an estimate of what kind of percentage of your traffic you should expect to be errors. (still looking through the others)
I don't have any specific examples of apps/extensions that interfere with Stripe.js, but I expect there are.
Was looking to see if we had a list of known-to-be-problematic extensions, but I'm not finding anything so far.
I'm less familiar with doing this in React, but am looking to see if there is a way to catch loading errors.
Cool! Thanks for looking into it. So, based on what you are saying and the lack of complaints from others about this same topic, our spikes may have another cause...
Hi there ๐ taking over, as my colleague needs to step away
Give me a few minutes to get caught up.
Thanks @torpid field!
We can't really speak to what a normal error rate would be, but putting loadStripe() in a simple try-catch block would ensure you're able to surface those errors on the server side and check them for hints as to what is causing them.
Usually with errors loading the script it has more to do with the CSP, but (since it's not failing every time) I'm not sure what else might be causing it on your end. Some extensions do block scripts, so it's possible that that's what you're seeing, but I would expect them to be very few
Yeahh, I have the same understanding. The tricky part is being unable to reproduce it... I can make it fail by explicitly blocking the request to https://js.stripe.com/v3, but it doesn't help to conclude what's causing the issue to our users.
I'll implement this error handling to see if I can gather more info about the failures
Could you give me any examples of CSPs that could interfere with loading the SDK?
Totally fine if you don't have any on the top of your mind
I don't unfortunately. Basically any CSP that blocks scripts from origins/domains that you don't own. I think some common configurations do that by default, but it's not common enough for me to know them off the top of my head
I see... Anyway, thank you very much! I'll come back when I have more useful info