#bartech_unexpected

1 messages ยท Page 1 of 1 (latest)

dusty spokeBOT
#

๐Ÿ‘‹ 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/1334128870286299218

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

ancient torrent
#

Full error message: clientSecret should be a client secret of the form ${id}secret${secret}. You specified: accs_secret__Rfv6bNEQvRBzGtT1mLkc8qMhtGHu6EYGKrLYSSbwg3z6nks.

green fulcrum
#

Can you share the req_xx ID of the request where you create the session?

ancient torrent
#

Sure: req_qAMxmKBIEZlP4i

green fulcrum
#

Can you try create another session? Seems like they're an extra _ in the secret: accs_secret__R*

dusty spokeBOT
ancient torrent
#

req_CIPaTbjL8o90Al. Yes, it returns it with double underscore (secret__XYZ)

green fulcrum
#

Can you share with me the exact error that the frontend code throws when you try and initialise with the secret

#

Hmm, or the exact code you're using to initialise?

ancient torrent
#

Ah that's more tricky. I'm implementing this in Bubble.io. This is my code atm:

green fulcrum
#

Yeah I think you're using the wrong code to initialise the client. That looks like an Elements instance?

#
loadConnectAndInitialize({
  publishableKey: 'pk_xxx'
  fetchClientSecret: fetchClientSecret,
})```
#

Where fetchClientSecret is your API call to retrieve and return an Account Session secret

ancient torrent
#

Ahh alright, let me start from scratch with this. Thank you for pointing this out