I've been using the Beta API of Graph to manipulate messages in Teams. On 10/16, I began getting errors performing these operations. I finally tracked it down to getting 500 messages on any API call in
GET /teams/{id}/channels/{id}/messages
The same call, omitting the /messages returns the channel info correctly.
For instance
Invoke-RestMethod "https://graph.microsoft.us/beta/teams/$teamID/channels/$chanID/" -Method Get -Headers $head
Returns a channel entity object, but
Invoke-RestMethod "https://graph.microsoft.us/beta/teams/$teamID/channels/$chanID/messages" -Method Get -Headers $head
return the below error (full data from fiddler)
HTTP/1.1 500 Internal Server Error
Cache-Control: private
Content-Type: application/json
request-id: 83ef77bb-5fa5-4277-939d-c192e7900c0e
client-request-id: 83ef77bb-5fa5-4277-939d-c192e7900c0e
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"USGov Iowa","Slice":"SliceC","Ring":"5","ScaleUnit":"001","RoleInstance":"AGSFE_IN_3"}}
Strict-Transport-Security: max-age=31536000
Date: Wed, 23 Oct 2019 18:33:43 GMT
Content-Length: 231
{
"error": {
"code": "InternalServerError",
"message": "Failed to execute request.",
"innerError": {
"request-id": "83ef77bb-5fa5-4277-939d-c192e7900c0e",
"date": "2019-10-23T18:33:43"
}
}
}
Am I doing something wrong?
I am in the GCC High environment.
Thanks Dave