MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
288 stars 511 forks source link

Issues with adaptive cards and Teams API in specific regions #8107

Open cristianoag opened 1 year ago

cristianoag commented 1 year ago

Bot is sending an adaptive card asking for permissions to upload a file to onedrive. When the teams client/bot is running from apac-02 region it doesn't work showing "Something went wrong. Please try again." or "This card action is disabled because you've blocked".

When you click the Allow button, the card performs a POST against the Teams API. When client/bot is running from the Amer-02 region, the post is executed correctly, and the file is exported.

The URL used to POST when running CC in the Americas region is https://teams.microsoft.com/api/mt/part/amer-02/beta/apps/files/file?fileName=ExportData_d8703542-5aab-471f-8eb1-2c4415eacd63.zip&appName=Company%20Communicator%20(Authors)&rootFolderName=Applications

However, when doing exactly the same from a teams client/bot posting in the Apac-02 region, the URL is different. We now have the POST being performed against https://teams.microsoft.com/api/mt/part/apac-02/beta/apps/files/file?fileName=ExportData_f1e7f1ca-ec6f-4bde-8b0e-a0c43a705e94.zip&appName=&rootFolderName=Applications

Note that the AppName is missed! And all posts return error 500. With {​​​​​​​​​"errorCode":"Unknown"}​​​​​​​​​​​​​​​​.

If I include the name of the app manually and re-run the POST using the dev mode in the browser it works. The teams client or bots used from apac-02 have something wrong.

ghost commented 1 year ago

Hi cristianoag! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Prasad-MSFT commented 1 year ago

Hi @cristianoag - Thanks for raising your issue. Please follow the issue thread which you raised in Teams Developer Question > Help me! channel for further updates. Thanks!

danilonogueira commented 1 year ago

Any update? We are facing the same problem.

danilonogueira commented 1 year ago

any update? same problem here.

Prasad-MSFT commented 1 year ago

@danilonogueira - Apologies. We are actively following up with engineering team regarding the issue. Currently there is no update from their end. We will inform in this thread once we get any update.

Thanks!

cwdata commented 1 year ago

Half a year later -> same problem here. Has anyone found a solution?

Prasad-MSFT commented 11 months ago

@cristianoag - As suggested internally please raise an ICM for this and assign it to Skype Teams / Teams Platform - Bots team.