#brandon_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/1306620566391885856
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
👋 happy to help
this is most probably related to your rate limits
but I'm double checking anyways
note that I only did this because customers have claimed they hit our checkout and payment methods do not load.
They load for me.. so in result i just started spamming F5 to see if i can get it to not load.
yes let me see what really happened there
are you still seeing the issue now?
there was an issue on the 9th of November but it should have been fixed since
I was able to get this error on the 11th, that's when it first popped up
yes that's normal
because each page contains 10 accounts
so when we try to get to the second page we ask for the result that comes after the last one
but the last one now is deleted
sorry what do you mean by each page contains 10 accounts?
This error is generated from our website.
i was initially going through our project manager who said she was going to get the field eng team to look but suggested the discord
"it was sent to us without an amount, currency, or mode. Maybe you're running into some sort of race condition on your end with these rapid refreshes? Like, you're waiting for those values from another process but are either not waiting long enough or have some odd logic that allows them to try to render the payment element without having those values. We're working on this on our end but it may help to reach out to the discord channel in the interim. Info below!"
oh ok
np
you already have a case opened with Stripe support?
Unsure. Again i was going through our project manager so I have no idea where she got with that.
she just suggested the discord for faster response so here i am
i'm not seeing it. However I am seeing a lot of CSP. But same thing - only getting this by spamming F5
Content-Security-Policy: (Report-Only policy) The page’s settings would block a script (script-src-elem) at https://www.mockett.com/static/version1731421682/frontend/WSM/Base/en_US/StripeIntegration_Payments/js/view/payment/stripe_payments.js from being executed because it violates the following directive: “script-src 'none'” require.js:1993:22
Content-Security-Policy: (Report-Only policy) The page’s settings would block a script (script-src-elem) at https://www.mockett.com/static/version1731421682/frontend/WSM/Base/en_US/StripeIntegration_Payments/js/view/payment/express_checkout.js from being executed because it violates the following directive: “script-src 'none'”
that's not an issue
is it not if it's preventing the payment element from loading?
is the element not loading?
correct, the payment element does not load
again, only if i'm spamming F5, by the 5th or 6th time i can get it to not load
👋 stepping in here and catching up
Yeah this is all expected -- there are rate limits on the requests needed to load Payment Element. If you spam refreshing the page then eventually you will hit those limits.
If you are seeing Payment Element not load on a normal page load then we would love to look into that.
Okay got it. So even if i do let it load and not try to force it to break, i still get a lot of the CSP errors. Is that normal?
Those CSP errors are coming from your own code, no? That doesn't inidcate it is blocked by stripe.js -- they seem like red-herrings to me though.
Correct it's ours. Sorry let me rephrase - i know these are report only. We had set our CSP pretty restrictive due to problems in the past.. i'm assuming if these were actually blocked, it would cause a problem with stripe
Most likely, yes, but I can't say for sure.