When I attempt to get the content stream for a specified hostedContent using the $value filter, Graph returns NotFound.
Process...
- We have the team ID
- We have the Channel ID
- We have the message ID
- We have the hostedContent ID
- We make the call to get the hostedContent stream:
teams/<teamid>/channels/<channelid>/messages/<messageid>/hostedcontents/<hostedContentId>/$value
It returns NotFound (see below)
However, if you remove the $value filter, we get the hostedContent object with the hostedContent id.
NOTE:
- For the vast majority of our calls, the $value filter works as expected, however, there are a handful of tenants where this fails.
- This is done using the graph SDK but we can repro using graph explorer
Expected:
I would expect to get the content stream even if it is empty.
Example 1:
{
"error": {
"code": "NotFound",
"message": "Not Found",
"innerError": {
"date": "2022-01-24T15:48:00",
"request-id": "81ee442f-01fb-4c94-a873-f8fb7738e359",
"client-request-id": "4bdc876a-e192-41ae-925b-1cd7f301654a"
}
}
}
Example 2:
{
"error": {
"code": "NotFound",
"message": "Not Found",
"innerError": {
"date": "2022-01-24T18:42:49",
"request-id": "949b994e-da7d-40d8-b0d8-875336f1e941",
"client-request-id": "949b994e-da7d-40d8-b0d8-875336f1e941"
}
}
}
We are trying to mitigate any issues where graph returns us (un)expected errors.
What is the underlying condition that gets the content into this state?