#jchannon_api

1 messages ยท Page 1 of 1 (latest)

wheat oliveBOT
#

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

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

charred venture
#

๐Ÿ‘‹ happy to help

#

what's the exception you're getting?

wary delta
#
Unhandled exception. Stripe.StripeException: No such account: 'acct_1Po32DPF1N4wJfPG'
   at Stripe.StripeClient.ProcessResponse[T](StripeResponse response) in /_/src/Stripe.net/Infrastructure/Public/StripeClient.cs:line 153
   at Stripe.StripeClient.RequestAsync[T](HttpMethod method, String path, BaseOptions options, RequestOptions requestOptions, CancellationToken cancellationToken) in /_/src/Stripe.net/Infrastructure/Public/StripeClient.cs:line 115
   at Stripe.Service`1.RequestAsync[T](HttpMethod method, String path, BaseOptions options, RequestOptions requestOptions, CancellationToken cancellationToken) in /_/src/Stripe.net/Services/_base/Service.cs:line 276
   at Stripe.Service`1.ListRequestAutoPagingAsync[T](String url, ListOptions options, RequestOptions requestOptions, CancellationToken cancellationToken)+MoveNext() in /_/src/Stripe.net/Services/_base/Service.cs:line 451
   at Stripe.Service`1.ListRequestAutoPagingAsync[T](String url, ListOptions options, RequestOptions requestOptions, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
   at Program.Main(String[] args) in /Users/jonathanchannon/Projects/ConsoleApp2/ConsoleApp2/Program.cs:line 25
   at Program.Main(String[] args) in /Users/jonathanchannon/Projects/ConsoleApp2/ConsoleApp2/Program.cs:line 25
   at Program.<Main>(String[] args)
#

looks like it reads 10, deletes them then gets to the next and throws saying it doesnt exist

charred venture
#

this means that you don't have access to this account

wary delta
#

but if i run the app again it deletes it another 10

charred venture
#

what's your platform account ID?

#

actually nvm I found it

wary delta
#

i just re-rean the app and same exception but now on acct_1PVbIuPNVzmqMUAy

charred venture
#

just give me a second please

wary delta
#

np

charred venture
#

ok I see what the issue is

wary delta
#

ah think i need to set that in a new options object

charred venture
#

with ListAutoPagingAsync we set the starting_after each time

#

but the problem is that the account by then would be already deleted so we no longer can find from where would you need the results

#

the easiest fix for this is to do the Paging yourself

#

and doing it in while or do/while

wary delta
#

thanks