#sanchit_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252958239629250590
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hi there!
which API are you making exactly?
the apis stops responding.
and can you clarify what that means?
https://api.stripe.com/v1/invoices
we are trying to hit from okHttp Client
The 1000 API call keeps on loading and not return any response
can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
req_fEqVReIWRND3Vz
thanks! give me a few minutes to look into this.
Sure
Thanks a lot
that request was successful. do you have a request ID for a failed request?
But we didnt get any response for this request.. it keeps on waiting for the response
As I shared in the previous screenshot
Can you share the response if this was succesful ?
can you share the full code you are using?
why are you not using the Stripe SDKs for this?
I'm not familiar with OkHttpClient, so not sure what's the issue
okay
will StripeSDKs be any better than this
?
Issue with SDKs happen that we have to update the API versions accordingly
with the Stripe SDK you can have auto pagination to go though all objects: https://docs.stripe.com/api/pagination/auto
In future if I have to use it in python scripts how will I be able to use sdks?
you would use the stripe-pythin library: https://github.com/stripe/stripe-python
what do you mean?
to list invoice in pythin, just use this code: https://docs.stripe.com/api/invoices/list?lang=python