#uristri2_api
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/1433560484639932517
š Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there. What's your Stripe account id?
acct_1DJxHZGnytxJlNo9
We experienced something very similar on October 13th
connectionTokenProviderError
Timed out waiting for connection token
were you in contact with Stripe on the Oct 13 event?
Yes, we exchanged some emails with a Terminal Product Specialist, but we havenāt received a response yet.
Since the same issue happened again today, itās becoming more urgent, itās completely taking our system down.
Ok, let me see if there's some detail in that thread that will save me some time investigating
what email did you use in that thread?
The email was forwarded in a company thread. I can share the name of the Terminal Product Specialist if that helps.
uriel@joe.coffee
I wrote with that email
Ok, I think I found the thread
thanks
Ok so the specialist did reach out to our terminal product team about this.
for the "Timed out waiting for connection token" error: Our SDK waits 60 seconds for the user's connection token provider to create and return a new connection token. If it takes more than 60 seconds, then it times out. Have you tried to troubleshoot why it's taking 60 seconds to create a token? Is the reader offline?
I didnāt mention it here, but I did in the email: in this case, the issue is with Tap to Pay NFC, not with physical readers.
We checked our telemetry service performance monitoring in Datadog, and we didnāt see any significant latency spikes, certainly nothing close to 60 seconds.
Let me see if I can get a teammate who is more familiar with this specific integration path
thanks
Could you share the code of your reader connection? Which specific line of code returns this error?
I have a Flutter/Dart abstraction on top of the native package. The issue occurs when I try to connect to the reader after discovery finishes and it proceeds to connect. At that point, the SDK makes a fetch token call, and thatās where it seems to eventually fail.
If that works for you, I can share a screenshot of the Dart code.
We only support official Stripe SDK in this channel, and don't have much insight on the implementation of those abstraction from non-Stripe SDK works. Did you make any code changes recently? If you didn't, the issue is likely due to the network connection
Could you try with a different network?
It happened simultaneously in many shops that use our service.
In fact, from where I have my setup (Uruguay), I havenāt experienced any errors, not even in our production system.
Since itās affecting many shops at the same time, weāre seeing all kinds of internet providers involved, as theyāre located in different parts of the West Coast.
Yeah, thatās what I figured, itās basically just handlers calling Stripeās native SDK and not much else.
Whatās interesting is that these errors donāt happen every day; instead, we see occasional spikes, roughly once every few weeks.
Has the connection request made from your client to server? How the Tap to Pay works is that it'll create a connection token first with the implementation guide here: https://docs.stripe.com/terminal/payments/setup-integration?terminal-sdk-platform=android#connection-token, then connect to the reader
Did your server receive the connection token creation request from the client side, which will then call Stripe to make a connection token?
From the error message, it looks like your client side fails to receive the connection token from your server
yes, we have it implemented in our server side.
Let me reach our backend team for typescript code snippet
Other the code snippet, I'd recommend asking your backend team to check whether the connection token has been reached from your client to the server
Another possibility is that your server failed to receive the request from the client, which then caused the timeout
It'll also be helpful to log the timestamp when the server received and responded to the connection token creation request to determine if there is any latency
The code looks fine to me. What's more important is whether your server received the request from your client side to process this code you shared
Perfect, Iāll coordinate with them to set up some contingency measures.
Do you have any tips or something we should keep in mind to prevent this from happening again?
Is there anything we might be missing?
It'll be helpful to add the log at both client and server side around the token creation request and monitor the latency and network connectivity
perfect, thanks for the help!
No problem! Happy to help š