#shubhamjha
1 messages · Page 1 of 1 (latest)
StripeRateLimitError: Test clock advancement underway - cannot perform modifications: clock_1N45H8SBeubK048wwW4tXxty
Can you share the request ID where you hit this? When you advance a test clock you need to allow some time for all the changes to settle
i typically add a ~5s delay before making subsequent requests
in my own test scripts
can you teel me why we use realse and why we use cancel in shedule ?
release means the subscription with continue after the schedule phases are done, you want ot keep billing the customer in perpetuity until you cancel it later
cancel is used if you want to stop billing the customer at the end of the scheduled phases
evt_1N48u9SBeubK048wSNXcBjlj
where we alow?
I don't understand what this event is related to here
teell me where i should allow time?
What are you trying to do, exactly? I'm a bit confused because your questions and examples are about some related but separate things.
StripeRateLimitError: Test clock advancement underway - cannot perform modifications: clock_1N45H8SBeubK048wwW4tXxty
i am asking for this
i cant find the evemt id or req id and i again getiing this error
yes
hey actuly wehen i shedule a subscription after that advancing the time to create subscription and after that i want to cancel the subscription then
You're calling the clock to advance here: https://dashboard.stripe.com/test/logs/req_5unS2VMSxyL9RC
Then canceling the schedule here: https://dashboard.stripe.com/test/logs/req_OYnVGgCHbYju8v
This suggests you need to wait longer before trying that cancel call
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
it cant not be cancel it says some shedule is associtaes with it so in that case i am going to cancel the shedule subscrtion so that we upadte the current subsction later
Sure, or you can use end_behavior=cancel for the subscription to be cancelled at the end of the schedule automatically
Or release the schedule before cancelling the subscription
oh, i see, your webhook endpoint is doing this automatically?
yes
Well this is conflicting with the test schedules, so you'll need to adjust that
how?
It depends what you're trying to achieve. Why is your endpoint automatically canceling the schedule and subscription when a subscription is created? That seems... undesirable.
please look and give sugustion
Hi, catching up here as synthrider had to step away.
Ok, let's step back. Can you step by step detail exactly what you're trying to do?
i am creating a sheule subscription here
and advancing the time so it will generate a subscription
now if i want to upadte or delete the generated subscription i am getting error
like this
data: {
errorMsg: 'The subscription is managed by the subscription schedule sub_sched_1N49RQSBeubK048wBytTPVwh, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.',
stack: 'Error: The subscription is managed by the subscription schedule sub_sched_1N49RQSBeubK048wBytTPVwh, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.\n' +
' at StripeError.generate (C:\Users\User\Downloads\LIVE_MODE_STRIPE\STRIPE ISSUE TEST\node_modules\stripe\lib\Error.js:38:24)\n' +
' at res.toJSON.then.StripeAPIError.message (C:\Users\User\Downloads\LIVE_MODE_STRIPE\STRIPE ISSUE TEST\node_modules\stripe\lib\RequestSender.js:104:43)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'
?
hey please
?
.
Can you share the request if where you're seeing this error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Thanks, looking
?
It looks like you're trying to directly cancel the subscription, https://dashboard.stripe.com/test/logs/req_ErAy2mSZN8ozeV
You'd want to use this endpoint instead: https://stripe.com/docs/api/subscription_schedules/cancel
Can you try this?