question

GopiKrishnan-9594 avatar image
0 Votes"
GopiKrishnan-9594 asked GopiKrishnan-9594 commented

Microsoft Graph API 504 Gateway Timeout on Bot App Installation for user

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!


microsoft-graph-sdk
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GopiKrishnan-9594 What are their user types? Are they personal accounts?

0 Votes 0 ·

User Types is Members and they are work accounts. All Users are part of the organization.





0 Votes 0 ·

Hi Team, this has been partially resolved when retrying after a few days. But for a few members, the app is still not installed with this error.
If you have any updates from your side, it would help us.

0 Votes 0 ·

0 Answers