#shubhamjha

1 messages · Page 1 of 1 (latest)

worldly spireBOT
frosty sky
#

Do you have a question about this?

#

Is something not behaving the way you expect?

frosty terrace
#

StripeRateLimitError: Test clock advancement underway - cannot perform modifications: clock_1N45H8SBeubK048wwW4tXxty

frosty sky
#

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

frosty terrace
#

can you teel me why we use realse and why we use cancel in shedule ?

frosty sky
#

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

frosty terrace
frosty sky
frosty terrace
frosty sky
#

What are you trying to do, exactly? I'm a bit confused because your questions and examples are about some related but separate things.

frosty terrace
#

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

worldly spireBOT
frosty sky
#

But in what context are you getting this error

#

Ok, here:

frosty terrace
#

yes

frosty sky
#

SOrry, copy failed

#

one sec

frosty terrace
#

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

frosty sky
#

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

frosty terrace
#

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

frosty sky
#

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

frosty terrace
#

look when sheule is called for subscrtion i uesd this

frosty sky
#

oh, i see, your webhook endpoint is doing this automatically?

frosty terrace
#

yes

frosty sky
#

Well this is conflicting with the test schedules, so you'll need to adjust that

frosty terrace
#

how?

frosty sky
#

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.

frosty terrace
dire garden
#

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?

frosty terrace
#

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

#

?

dire garden
frosty terrace
#

req_ErAy2mSZN8ozeV'

#

req_ErAy2mSZN8ozeV

#

?

dire garden
#

Thanks, looking

frosty terrace
#

?

dire garden
#

Can you try this?