#rachelinxr
1 messages · Page 1 of 1 (latest)
Hi 👋 I would anticipate that you would receive an error if you were hitting a rate limit (25 requests/second in test mode).
When you say the function doesn't run at all, is it actually not being executed and no request is being made to our API?
Are you able to consistently reproduce the behavior where nothing happens, and/or have you noticed any common pattern between when the request executes as expected versus when it doesn't?
When it doesn't run at all, it is not being executed and no request to the API, correct. I am not able to consistently reproduce the behavior, except that anecdotally it seems that if I wait a few hours since I called it last or refresh the cache several times, sometimes it works again.
Hm, have you tried adding print lines to the code you're using to help see exactly what path it is taking when your button is clicked?
Yes I have. My function that holds the stripe.confirmCardPayment is being hit just fine. But stripe.confirmCardPayment doesn't seem to run consistently, and when it doesn't run, it also doesn't hit result.error.
That does sound odd, particularly the part about no errors being thrown. Do you have a test site that is publicly available where we could see this behavior?
I'll have to push it to our test server once I finish a few more changes, and then I can get back to you.
@lunar osprey Did you still need help?
I still have not fixed the issue, and it is still inconsistent. Sometimes it works when I clear the browser cache, sometimes it doesn't. Also, if I'm able to get a breakpoint to hit before the stripe.confirmCardPayment, and then continue debugging after the breakpoint is reached, I pretty consistently get this error:
Unhandled exception rendering component: You have an in-flight confirmCardPayment! Please be sure to disable your form submit button when confirmCardPayment is called.
IntegrationError: You have an in-flight confirmCardPayment! Please be sure to disable your form submit button when confirmCardPayment is called.```