Forum Discussion
subscription missed from listing
Hi, I met a problem when I wanted to list subscriptions I created. I created and updated some subscriptions and I can get details about those subscription using https://graph.microsoft.com/v1.0/subscriptions/{id}, (those subscriptions are valid). However when I tried to list all my subscriptions using https://graph.microsoft.com/v1.0/subscriptions, I cannot find some subscriptions from list values. Can anyone tell me what cause this issue?
Some details about this problem:
I can get subscription details when I input subscription id
but when I list subscriptions, there is only one in value and is not what I want
5 Replies
- Prasad_Das-MSFT
Microsoft
ChenguangHe - We tried to repro this issue by creating two subscriptions as below and on querying List Subscriptions API, we are able to get desired results.
1.2.
List Subscriptions API Result:
Could you please verify if the subscriptions you are getting are not expired? Please provide request-id and timestamp as well.- ChenguangHeBrass ContributorPrasad_Das-MSFT you can see the picture I provided. The subscription expiration time is 2022-11-16T09. The time when I created the subscription was on 2022-11-15. So I confirm that the subscription is not expired.
Today I want to get the subscription info and I receive 404 response. Can you check why the subscription disappeared? The request is https://graph.microsoft.com/v1.0/subscriptions/5c4f9869-3fb2-4261-a034-239340f8a705
and the response is
{
"error": {
"code": "ResourceNotFound",
"message": "The object was not found.",
"innerError": {
"date": "2022-11-15T17:35:58",
"request-id": "108e32a0-1e1d-4e9d-b442-6a55a6c29a80",
"client-request-id": "108e32a0-1e1d-4e9d-b442-6a55a6c29a80"
}
}
}- ChenguangHeBrass ContributorHi Prasad_Das-MSFT, I reproduced this issue. On 15 Nov 2022 21:26:02 GMT, I send request to get a subscription info and I got details. The request id is f06e8fe6-76f7-4d8b-86d3-bf7749f95cee> Then I successfully got another subscription info with request id bda4c7ef-18ac-480c-8b84-470687839f13. Then I sent request to list all subscriptions but I couldn't find my expected subscriptions, The request id of list operation is 8dd35422-e706-4a36-a3f6-2767255a8635 and the time is 15 Nov 2022 21:30:14 GMT
- Prasad_Das-MSFT
Microsoft
ChenguangHe - We are checking the issue. We will get back to you shortly. In the meantime, could you please share your request-id and timestamp?