#jakeb_api

1 messages ยท Page 1 of 1 (latest)

lyric vineBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

alpine stream
#

This is the code in question:

        $invoice = $client->invoices->upcoming(
            [
                'subscription' => $subscription->id,
                'subscription_details' => [
                    'items' => [$newPlanDetails],
                    'proration_date' => $startDate,
                    'proration_behavior' => 'always_invoice'
                ],
            ],
            [
                'stripe_account' => $company->getStripeAccountId()
            ]
        );
#

additional details are in the thread from the chat on Friday, which appears to have been linked above

compact fern
#

Wow, that ... is not a useful piece of documentation at all. ๐Ÿ˜‚

alpine stream
#

I did see that new endpoint, however, I'm not sure it's available on our API version, and the current endpoint should still work since we were using it previously without issue and have not changed the API version

#

If the only way to get it working is to upgrade to the newer API version and start using that endpoint we can, but would prefer to not potentialy break other API calls we're making ๐Ÿ˜…

compact fern
#

... recently started timing out ...

Can you find an example in your Stripe Dashboard and share the Request ID with me? I only need the ID, not the link.

alpine stream
#

I checked that when I made the other thread last week, they don't show up, and I never get a response so am not able to get one from the response headers either ๐Ÿ˜ฆ

#

I've upgraded the PHP library to 17.2.0 and have attempted to use the new endpoint with the same parameters (just to see if it'd go through or if I'd get an error), but it just times out (only code change from what I listed above is upcoming changed to createPreview

lyric vineBOT
compact fern
#

Can you share an ID from your Stripe Account so I can peek? Account ID, Request ID, Invoice ID, doesn't matter.

alpine stream
#

Sure - evt_1PIyOeDqmHlshEpcQcUzDOn1

iron wasp
#

hi! fyi i'm taking over for timebox - catching up on the thread now

alpine stream
#

So quick update here, it turns out one of the values being passed into this function is a closure that ends up triggering a loop back into the function and just goes on forever, and something within that function call tree must have changed recently causing this, and it just happened to line up with an API call that had the documentation removed, and was recently deprecated, so I think this issue is on our end, and was just hidden behind this cloud of documentation inconsistencies so I think we're good here

iron wasp
#

ooooo ok!

alpine stream
#

Is there a way to log the documentation page linking to a 404?

#

I'd imagine someone else will probably run into that as well since it's on the main invoices documentation page ๐Ÿ™‚

compact fern
#

I'm glad you figured it out! I've already passed the missing documentation issue along to the right folks. ๐Ÿ™‚

#

(Also I'm leaving now ๐Ÿ˜…)