#macca-gian_connect-transfers-capability

1 messages ยท Page 1 of 1 (latest)

shut oarBOT
#

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

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

analog belfry
#

Hello ๐Ÿ‘‹

warm rivet
#

Hello! ๐Ÿ‘‹

analog belfry
#

I'm taking a look at the requests you shared

warm rivet
#

Thanks! I'm going to share a bit more here if there is no problem

analog belfry
#

For the failed request, it's a replay using the same idempotency key so, even if the Account now has the capaibility, it will still return an error

warm rivet
#

๐Ÿ’€

#

oh god

#

Can you advice me what should I do in this case?

Because assuming Account is already connected

When requesting Transfer.create it's going to do the Transfer but if for some reason (our mistake) we run that again (we've having some issues with our queues) we run that again we don't want the Transfer to be created again

#

But in this case, when Account is not yet connected, when first trying to Transfer.create we expect to have that error but after connecting the account and retry the Transfer how can we ensure it works if previously it failed?

analog belfry
#

Because assuming Account is already connected

Why would you assume that? I recommend not assuming anything and simply checking by retrieving the Account object via the API.

Then you can check the capabilities.transfer property and only send the Transfer if it is enabled.

warm rivet
#

Mm ok make sense

#

Thank you

analog belfry
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚