#Valentin Hinov-API

1 messages · Page 1 of 1 (latest)

next crow
#

Do you have the request id that errored? req_xxx

analog stump
#

Don't have anything besides the payment intent id, I'm afraid.

#

Does that help?

#

Unless you can let me know where I can look for that req id?

#

It's like the Typescript fetch command is just failing for that URL randomly

next crow
#

From your dashboard

#

you can find request log here

analog stump
#

it doesn't help since it seems like the last log entry was me updating the intent before confirming it. The confirm was never logged. It seems like the browser never managed to make the request

#

seems like a client-side issue

next crow
#

If you don't see it there, yes it could be the confirmation was never made

#

Do you have a screenshot?

#

console log?

#

But wait, are you trying to call the Confirmation API from js?

#

It doesn't work that way. The Confirmation API URL you specified is for backend call. In frontend you should use stripe.js methods like confirmPayment etc

analog stump
#

yeah so I call confirmCardPayment from JS

#

and when I do it makes this very call to stripe

#

but it seems like the browser isn't able to do it for some reason, which is very new to me

#

could I try wrapping that in a retry block? Is there any downsides to doing it?

next crow
#

ah I see

#

Error fetching... but not tracking record on your request log?

#

In 1000 request, 998 succeed you do see the confirmation on your log, right? Only 2 doesn't have confirm log

analog stump
#

yes

#

because the browser never made the call I think

next crow
#

It's weird. Any way to reproduce? Maybe network was just flaky at the moment?

analog stump
#

Maybe - it's just weird how it started happening on June 27th and has been intermittent ever since. The confirmCardPayment gets executed in a chain that includes calls to my own server. Why would the browser be able to talk to my server but not stripe

#

my question from before still stands - is it ok if I wrap the confirmCardPayment in a retry block in case this happens? I assume yes

#

As long as the request happens it shouldn't throw an exception for any other reason right? It should give me a result with errors if there are any

next crow
#

Yes retry works

analog stump
#

Thanks, I'll try that

sinful ravenBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact