Image Gateway in Adaptive Cards in Webclient changed and fails to load images

%3CLINGO-SUB%20id%3D%22lingo-sub-2116606%22%20slang%3D%22en-US%22%3EImage%20Gateway%20in%20Adaptive%20Cards%20in%20Webclient%20changed%20and%20fails%20to%20load%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2116606%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20bot%20that%20uses%20adaptive%20cards%20as%20messages%20and%20renders%20some%20images%20within%20the%20cards.%3C%2FP%3E%3CP%3ESo%20far%20this%20worked%20perfectly%20however%20starting%20with%20last%20Friday%2C%20I%20noticed%20that%20the%20image%20links%20in%20all%20newly%20issued%20cards%20are%20broken%2C%20while%20the%20previously%20issued%20cards%20have%20working%20image%20links.%20This%20is%20only%20happening%20in%20the%20web%20client.%20The%20desktop%20client%20works%20fine%20as%20also%20the%20IOS%20client.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ETurns%20out%2C%20that%20the%20difference%20is%20in%20the%20image%20gateway.%20It%20used%20to%20be%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-basic%22%3E%3CCODE%3Ehttps%3A%2F%2Fde-prod.asyncgw.teams.microsoft.com%2Furlp%2Fv1%2Furl%2Fcontent%3Furl%3Dhttps%253a%252f%252fsome-url.com%252fsome-image.png%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20now%20it%20is%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-basic%22%3E%3CCODE%3Ehttps%3A%2F%2Furlp.asm.skype.com%2Fv1%2Furl%2Fcontent%3Furl%3Dhttps%253a%252f%252fsome-url.com%252fsome-image.png%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BWhen%20I%20call%20the%20first%20link%2C%20the%20image%20loads%20perfectly%2C%20when%20I%20call%20the%20second%20I%20get%20a%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3E%3CERROR%3E%0A%3CMESSAGE%3EAuthorization%20has%20been%20denied%20for%20this%20request.%3C%2FMESSAGE%3E%0A%3C%2FERROR%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20note%20that%20in%20the%20json%20of%20the%20adaptive%20card%20that%20my%20bot%20sends%2C%20there%20is%20no%20image%20gateway%20included%20but%20just%20the%20raw%20link.%20So%20the%20gateway%20is%20added%20by%20the%20rendering%20logic%20within%20Teams.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWhat%20do%20I%20need%20to%20do%20so%20my%20adaptive%20card%20can%20show%20the%20images%20again%3F%3C%2FP%3E%3CP%3EWhere%20can%20I%20get%20notice%20of%20such%20changes%20before%20they%20affect%20my%20application%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2116606%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChat%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2119981%22%20slang%3D%22en-US%22%3ERe%3A%20Image%20Gateway%20in%20Adaptive%20Cards%20in%20Webclient%20changed%20and%20fails%20to%20load%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2119981%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F957931%22%20target%3D%22_blank%22%3E%40jocsch%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ECould%20you%20please%20write%20to%20us%20at%20microsoftteamsdev%40microsoft.com.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2119972%22%20slang%3D%22en-US%22%3ERe%3A%20Image%20Gateway%20in%20Adaptive%20Cards%20in%20Webclient%20changed%20and%20fails%20to%20load%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2119972%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F826137%22%20target%3D%22_blank%22%3E%40Rama-MSFT%3C%2FA%3E%26nbsp%3BDo%20you%20have%20an%20email%20address%20I%20can%20send%20it%20to%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2119949%22%20slang%3D%22en-US%22%3ERe%3A%20Image%20Gateway%20in%20Adaptive%20Cards%20in%20Webclient%20changed%20and%20fails%20to%20load%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2119949%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHi%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F957931%22%20target%3D%22_blank%22%3E%40jocsch%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20gone%20through%20your%20issue%2C%20as%20we%20need%20to%20test%20the%20adaptive%20card%20to%20know%20how%20it%20renders%2C%20we%20would%20request%20you%20to%20share%20us%20the%20manifest%20json.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2118750%22%20slang%3D%22en-US%22%3ERe%3A%20Image%20Gateway%20in%20Adaptive%20Cards%20in%20Webclient%20changed%20and%20fails%20to%20load%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2118750%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F957931%22%20target%3D%22_blank%22%3E%40jocsch%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3EThanks%20for%20reaching%20out%20to%20us.%20%3CBR%20%2F%3EWe%20have%20already%20started%20checking%20the%20issue%20internally%20and%20we%20will%20update%20you%20ASAP.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149055%22%20slang%3D%22en-US%22%3ERe%3A%20Image%20Gateway%20in%20Adaptive%20Cards%20in%20Webclient%20changed%20and%20fails%20to%20load%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149055%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F826137%22%20target%3D%22_blank%22%3E%40Rama-MSFT%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EAny%20recommendation%3F%20I%20have%20seen%20fluctuating%20behaviour%20in%20the%20webclient%20in%20the%20last%20weeks.%20Sometimes%20it%20worked%2C%20sometimes%20it%20doesn't%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%20today%20the%20undefined%20images%20reached%20the%20Desktop%20client%20as%20well!%3CBR%20%2F%3EThis%20is%20now%20hurting%20seriously!%3CBR%20%2F%3EPlease%20advice%20what%20to%20do.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have a bot that uses adaptive cards as messages and renders some images within the cards.

So far this worked perfectly however starting with last Friday, I noticed that the image links in all newly issued cards are broken, while the previously issued cards have working image links. This is only happening in the web client. The desktop client works fine as also the IOS client.

Turns out, that the difference is in the image gateway. It used to be:

 

https://de-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fsome-url.com%2fsome-image.png

 

But now it is

 

https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fsome-url.com%2fsome-image.png

 

 When I call the first link, the image loads perfectly, when I call the second I get a 

 

<Error>
<Message>Authorization has been denied for this request.</Message>
</Error>

 

Please note that in the json of the adaptive card that my bot sends, there is no image gateway included but just the raw link. So the gateway is added by the rendering logic within Teams.


What do I need to do so my adaptive card can show the images again?

Where can I get notice of such changes before they affect my application?

 

7 Replies

Hi @jocsch,

 

Thanks for reaching out to us.
We have already started checking the issue internally and we will update you ASAP.

Hi @jocsch,

 

I have gone through your issue, as we need to test the adaptive card to know how it renders, we would request you to share us the manifest json.

@Rama-MSFT Do you have an email address I can send it to?

@jocsch,

 

Could you please write to us at microsoftteamsdev@microsoft.com.

@Rama-MSFT 
Any recommendation? I have seen fluctuating behaviour in the webclient in the last weeks. Sometimes it worked, sometimes it doesn't

However today the undefined images reached the Desktop client as well!
This is now hurting seriously!
Please advice what to do.

I have been having the same issue since we first started using teams in March, everything works in the desktop and mobile apps, but not in the webclient for the same reasons stated here.
If a solution was found, it would be much appreciated.

Thanks.

@Exelscior Not really a solution. But the problem disappeared for me.
What I found out is that it is related to the region. Depending on the serviceURL different image gateways have been used. So sometimes it worked, sometimes it didn't.

 

I hoped that it was fixed by MS.