#kitem - subscription schedule error

1 messages ยท Page 1 of 1 (latest)

desert wind
#

Thanks for the info. Checking in to that error and I will get back to you

#

What is your code to try to update the schedule? That first request req_jXmDjAdPZHbwge is actually for releasing a schedule which should be an entirely different endpoint

astral charm
#

Yes correct, i don't undestand why it goes in release

#

the code I'm using is basaically this
$subscriptionSchedule = \Stripe\SubscriptionSchedule::update(
$idSubscriptionSchedule,
[
$data
]
);

#

so when i do the update of the schedule, it goes directly in release

#

(I'm coming with the correct request)

#

Here the request of update
req_M0bigcfR1CcViW

#

Here the list of all requests in order:
req_yQHMrfyPm7Ix11
req_UXMrPMrnLIgYvt
req_M0bigcfR1CcViW
req_xhY6iakPhski4c
req_uW1sKglLUdjlBq
req_CJo1QXzbmWNrXs
req_k8abCIUkVGhKOH

desert wind
#

Are you sure that somewhere in your code isn't calling SubscriptionSchedule::release in a place you aren't expecting?

#

I will try to recreate, but as far as I can see that endpoint should only be called if SubscriptionSchedule::release is actually being called in your code. Otherwise this sounds like a bug, and I'll see if I can narrow down what might be happening there

astral charm
#

mhm, I'll check now

#

maybe I've missed some webhook to debug and is releasing

#

Well I can confirm, you're right

#

my bad

#

๐Ÿ˜…

#

Thank you

desert wind
#

Glad you could find that! I was really wracking my brain trying to think of what kind of bug might make this happen otherwise

#

We could have found it, but this one sounded like it would have been hard to catch if it wasn't intended behavior

astral charm
#

yes, just my bad, sorry for that ๐Ÿ˜…

#

have a great day and thank you for your time