Forum Discussion
ruhancomh
Mar 07, 2024Copper Contributor
Image Gateway in html messages in Webclient fails to load images on Teams Classic
I have an app that integrate with Microsoft Teams API to send messages.
We used to send gif/images to chat using html img tag (eg: <img src="my_img_url" />). It was working fine so far, but recently the images stop to be loaded on chat (person to person).
After some research we discovered that this issue only happens with the Microsoft Teams Classic version, but not on the v2 that started to be release this year. The same with the desktop app, the classic version don't loads the images.
Turns out, that the problem seems to be in the image gateway.
Checking the errors and network tab on the Teams Classic Web Client it trys to load the image through the image gateway using the following URL:
https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/image/original?url=https%3A%2F%2Fus-prod.asyncgw.teams.microsoft.com%2Furlp%2Fv1%2Furl%2Fcontent%3Furl%3Dhttps%253a%252f%252fruhanb.com%252fget%252fe4068125-8ff0-44ed-abd9-fca1bea98f81%252fdune-dune-part-2.gif
But the same message on Teams V2 works and checking the networks tab request, it loads the image from the following URL:
https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fruhanb.com%2fget%2fe4068125-8ff0-44ed-abd9-fca1bea98f81%2fdune-dune-part-2.gif&v=1
The URL used in Teams Classic apparently it is invalid (looks like it add the Image Gateway URL twice, and seems to be double encoded compared to the Teams V2), and returns a 410 error.
Since nothing changed in the API and integration, and it is working on new version, as before in the "old version" of teams, it seems to be a problem with the Microsoft Teams Classic.
Is there any workaround for this?
There is any other data that I need to provide to help you to solve this?
Microsoft Teams v2 - gif on DM working:
Microsoft Teams Classic - gif on DM not working:
6 Replies
Sort By
- Meghana-MSFT
Microsoft
Thank you for reporting this, we will check this and get back to you.- Meghana-MSFT
Microsoft
We are also able to repro this issue, we will check this internally and get back to you.- Meghana-MSFT
Microsoft
We see that the images are loading fine in Teams classic now. Could you please check confirm?