I am using MS Graph API to install a custom Teams bot App for all users in an organization that is using Teams.
The app got installed successfully for 95% of total users without any error. But only for a few users, the app installation API responds with 504 gateway timeout.
Here is the sample curl of the API request.
curl --location --request POST 'https://graph.microsoft.com/v1.0/users/xxxx-xxxx-xxxx/teamwork/installedApps' \
--header 'Authorization: Bearer XXXXXXXXXXXXXXXXX' \
--header 'Content-Type: application/json' \
--data-raw '{
"teamsApp@odata.bind" : "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/XXXXX-XXXX-XXXX-XXX-XXXXXXX"
}'
Here is the error response.
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2022-04-04T10:07:10",
"request-id": "fc8c147d-9999-4bf6-aba4-5f765c7cad1e",
"client-request-id": "fc8c147d-9999-4bf6-aba4-5f765c7cad1e"
}
}
}
Please help here!