#graham_error

1 messages ¡ Page 1 of 1 (latest)

south parrotBOT
#

👋 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.

lime ferry
#

I think this is because you're expanding a lot of objects and the request is timing out. Looking..

indigo pelican
#

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.

lime ferry
#

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

indigo pelican
#

Hmm. It looks like we're passing in a customer Id in our code.

lime ferry
#

Can you share the code you're using?

indigo pelican
#

Yeah, this is partially legacy code, but we have made updates. FWIW, we're using the .NET SDK

lime ferry
#

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

indigo pelican
#

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.

lime ferry
#

what are you passing into options ?

#

Did you change anything tax rate related recently?

indigo pelican
#

We're passing in the customer Id, a subscription Id, the AutomaticTax setting, subscription_details, and the expands.

lime ferry
#

What happens if you remove expand param? I have a feeling that request would succeed

indigo pelican
#

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

lime ferry
#

Gotcha. Can you try using Upcoming() call instead?

indigo pelican
#

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.

lime ferry
#

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.

indigo pelican
#

I think we have it figured out. It is from a recent change. I appreciate your help!