#vineet5769
1 messages · Page 1 of 1 (latest)
hi there!
can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
The api call made is subscription retrieve and I get the following message:
message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_* response_code=404
Give me some time
It seems retrieving of subscription is not added to logs
it is, you just need to check this filter:
Not yet visible
what do you mean?
example in test mode
can you copy the request ID (req_xxx)?
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?
Can you copy the Susbcription ID (sub_xxx)?
if it's just the object ID, then yes
sub_FNCKiKrgSLMhDA
Cool
This is the id that gave error while retrieving on production
note that this subscription was deleted
Yes
But how come upon retrieving we see an error?
Can we not retrieve deleted subscriptions?
no, since it's deleted
note the objects only really get deleted in test mode(https://support.stripe.com/questions/test-mode-subscription-data-retention) , in production the actual object can't be deleted, the sub can just be cancelled
A cancelled subscription on production mode can be retrieved?
yes
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
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'
why shouldn't it have?
Because right now you mentioned that we can retrieve a cancelled subscription successfully on production mode, right?
I'm really confused right now
so you claim that sub_FNCKiKrgSLMhDA was a livemode object?
yes