#viliamkopecky

1 messages · Page 1 of 1 (latest)

runic pendantBOT
tropic grotto
#

Hi there. How can I help?

#

Is there a way to always reproduce this issue?

drowsy brook
#

It is hard to describe as I am not sure what exactly triggers the issue - my first question would be if i could see the code of https://js.stripe.com/terminal/v1 in non-minified variant 🙂 then i could maybe create a pull request.

My app checks discoverReaders in time interval, but after short time of usage it starts erroring with the mentioned error.

I do believe I have defined the onFetchConnectionToken correctly, but onFetchConnectionToken is not called itself - so I believe it is a problem of the lib.

tropic grotto
#

The Terminal SDK is not open-sourced

#

Based on the error message, it seems like the Terminal SDK receives a connectionToken has already been redeemed, is your backend always creating a new connection token upon request?

drowsy brook
#

yes, but the issue is the library doesnt ask for it with onFetchConnectionToken - it just isnt called so I cannot give it fresh token

#

i think the lib itself doesnt mark token as used in some case, then doesnt ask for a fresh token resulting in that error

tropic grotto
#

How often did you get the error?