#vineet5769

1 messages · Page 1 of 1 (latest)

coarse pineBOT
pearl kelp
#

hi there!

rocky heart
rocky heart
#

It seems retrieving of subscription is not added to logs

pearl kelp
#

it is, you just need to check this filter:

rocky heart
#

Not yet visible

pearl kelp
#

what do you mean?

rocky heart
#

example in test mode

pearl kelp
#

can you copy the request ID (req_xxx)?

rocky heart
#

I've made two API calls here - one to retrieve subscription & another to delete it

#

So, shouldn't I have two requests? And in production I'm getting an issue while retrieving few subscriptions (for others it works). So how to debug it?

pearl kelp
#

Can you copy the Susbcription ID (sub_xxx)?

rocky heart
#

The one that gave error? It's on production

#

Is it safe to share production data?

pearl kelp
#

if it's just the object ID, then yes

rocky heart
#

sub_FNCKiKrgSLMhDA

#

Cool

#

This is the id that gave error while retrieving on production

pearl kelp
#

note that this subscription was deleted

rocky heart
#

Yes

coarse pineBOT
rocky heart
#

But how come upon retrieving we see an error?

#

Can we not retrieve deleted subscriptions?

uncut nacelle
#

no, since it's deleted

rocky heart
uncut nacelle
#

yes

rocky heart
#

Asking this since the above subscription id which is cancelled is on production mode and it was cancelled before but gave an error later while retrieving

rocky heart
# uncut nacelle yes

Then the error should not have occurred:
error_code=resource_missing error_message="No such subscription: 'sub_FNCKiKrgSLMhDA'" error_param=id error_type=invalid_request_error message='Stripe API error received'

uncut nacelle
#

why shouldn't it have?

rocky heart
# uncut nacelle yes

Because right now you mentioned that we can retrieve a cancelled subscription successfully on production mode, right?

#

I'm really confused right now

uncut nacelle
#

so you claim that sub_FNCKiKrgSLMhDA was a livemode object?

rocky heart
#

yes

uncut nacelle
#

ok. then sorry, there's a misunderstanding

#

it's not deleted, it's cancelled. If you're getting a 404 it's because you're using the wrong API keys