-
Notifications
You must be signed in to change notification settings - Fork 528
Webchat not showing auth cards #1449
Comments
Here is my appsettings of VA Oauth Connection (CalendarSkill) appsettings (CalendarSkill) |
The WebChat example you shared above is as expected in WebChat within Azure Portal. It's an older version which doesn't support OAuthCards. Annoying I know but you'll need to configure the WebChat channel and follow the channel instructions to get that working as you might expect. Can you confirm that Authentication completes successfully when use use the Emulator against the Calendar Skill directly? Just want to double check that part. Crucially,. you can signin and ask "what meetings do I have", etc.? |
Yes, when i'm testing Calendar Skill directly using Emulator it's working and I'm able to schedule meetings. Also, able to get all my meetings. |
I'm facing same issue, I'm able to test with emulator everything works fine ..After deployment I am not able to sign in with the card support error in web chat. |
Thanks for confirming, very odd! Could you both share the add_remote_skill log file from the deployment directory please? |
Interesting. Can you go into Azure find the Bot registration for your VA bot, click settings and scroll down to oauth connections and see if you have one configured please? I'm not seeing the log entries for creation of your auth connection, |
Nope. Nothing for VA Bot. I have oauth connection on CalendarSkill bot. |
I added oauth connection in VA Bot now. It's working. Thanks a ton! |
Is Calendar Skill supported with Teams? |
That is really strange - add_remote_skill.ps1 has code to create the auth connection for you, for some reason in your scenario it failed to do this. Could you help me out by trying a couple of further things so I can diagnose further?
|
@darrenj this is my add_skill_log.txt |
after debugging it is working as expected with the emulator, the virtual assistent and the calendar skill individually. |
@premaarya I suspect your not passing the correct botname to the add_remote_skill script, it therefore can't find your Bot in azure to add the auth connection to. This then results in the BadRequest issue. When you deployed your VA bot initially you would have provided a name which you must use when adding a Skill. We don't have an easy way to find this out for you automatically. Check your resource group, you should see something like the below. The Bot name is the name of your Web App Bot. If you use the remove skill powershell, ensure the auth connection is removed and try again I would hope it is created correctly. I just reproed your issue when providing the wrong name and did see clear errors messages in the console in red? We have also just introduced the
|
@darrenj Thanks ! I did miss something .. create the project again and this time i get not error in the log. I also see the 11 resources created in the resource group name I provided. Here is the log for adding skill. I can see everything works fine in the emulator.. however in the webchat the moment i ask any calendar intent I dont get any response. |
Strange that WebChat isn't working. Can you look in AppInsights for any exceptions that might be logged? |
Adding the support team to look at VA with Calendar Skill within WebChat not working. I can't repro byt hopefully @premaarya can share the webchat hosting code to see if there is something there. Potentially oauth cards are not showing/rendering? Ignore the earlier thread of this issue that's resolved and the issue has forked a little |
@premaarya If your still experiencing the issue with webchat can you share your webchat hosting code please? |
@darrenge I have been testing in the web chat test client in the azure portal and I realize i am using the V3 client code to test. Can that be an issue?
|
I think we've found the problem with WebChat, whether it's in the "azure hosted" test webchat version or directly. If you follow my instructions here then I suspect this will resolve the issue. |
Confirmed as resolved in our testing (and another customer) so closing. Let us know if the instructions in my previous comment don't resolve your issue. |
@darrenj Thanks! |
WebChat issues have been resolved, if you update to the latest Bot.Builder.Skills and Bot.Builder.Solutions packages there should be no further problems within WebChat. |
Thanks Darren for providing steps to test skill independently. Finally, I got my calendar still working but still getting bad request running via VA.
Also, when i try running bot through web chat i getting below error.
The text was updated successfully, but these errors were encountered: