#jchannon_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/1306618510847381506
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
this means that you don't have access to this account
but if i run the app again it deletes it another 10
i just re-rean the app and same exception but now on acct_1PVbIuPNVzmqMUAy
just give me a second please
np
ok I see what the issue is
look at this request https://dashboard.stripe.com/logs/req_3O8ufjtJ2OaEp6
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ah think i need to set that in a new options object
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
thanks