#graham_error
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/1333901376165515376
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I think this is because you're expanding a lot of objects and the request is timing out. Looking..
FWIW, we have other test environments for which we haven't seen this issue (at least we haven't noticed it).
I take that back. I see some in that environment as well.
Ah, in our logs I see its trying to look up txr_1QmLGECmNuBtzg8uAmXkmzho. and its failing..
oh you aren't passing in a customer
Umm are you following any docs for this? You seem to be trying to retrieve an upcoming invoice object
Hmm. It looks like we're passing in a customer Id in our code.
Can you share the code you're using?
Yeah, this is partially legacy code, but we have made updates. FWIW, we're using the .NET SDK
I'd expect a GET request to /v1/invoices/upcoming to get an upcoming invoice for a customer
but your request is going to GET /v1/invoices/upcoming_in_1QmLGECmNuBtzg8uiv5cgIdL
The final line that actually makes the call is return new Stripe.InvoiceService().Upcoming(options, requestOptions: new RequestOptions { ApiKey = OUR_API_KEY_HERE });
The upcoming prefix must be getting added by the SDK.
what are you passing into options ?
Did you change anything tax rate related recently?
We're passing in the customer Id, a subscription Id, the AutomaticTax setting, subscription_details, and the expands.
What happens if you remove expand param? I have a feeling that request would succeed
New twist: I don't see where we are adding all of those expands (including the tax one).
Okay, I mispoke. This is from a call to GET invoice, not to the .NET SDK's Upcoming() method
Gotcha. Can you try using Upcoming() call instead?
I think I see where we are making the call. We're getting the upcoming invoice and then are making a separate call to try to get that invoice to get the tax rate information.
Gotcha. I'm trying to check when this tax rate was deleted but I'm not seeing much. The underlying issue is the tax rate object has been deleted.
I think we have it figured out. It is from a recent change. I appreciate your help!