botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[.NET SDK] Code not working in deployment mode

Open SATACHAKRA opened this issue 8 years ago • 7 comments

Bot Info

  • SDK Platform: .NET
  • Active Channels: Direct Line
  • Deployment Environment: < Azure App Service and local development with Emulator >

Issue Description:

Our bot is continously deployed via a bitbucket repo..it was working great until last friday..then we had to change some luis keys. after updating and syncing the latest code our bot is just not replying anything. The code works perfectly fine in the emulator...but once it is up in continous deployment it just stops responding (i.e: it shows the welcome message but doesn't respond to anything after that).

it is strange as the same code is working fine locally on emulator. I am totally confused. i have checked the LUIS endpoint, it is active..and have given the correct license keys in the code. Has anyone else faced a similar problem??plz help asap.

SATACHAKRA avatar Apr 16 '18 10:04 SATACHAKRA

Can you copy-paste the section of the code where you use the license keys in the code? Are you plain-text adding the keys to your bot or are you using environmental variables? If the latter, did you update the environment variables in Azure App Service?

stevengum avatar Apr 16 '18 17:04 stevengum

This is my web config file. And as I said before the code is running fine locally i.e via the emulator. Once I push it into continous deployment, it just stops responding.

`xml version="1.0" encoding="utf-8"?>

configuration appSettings add key="MicrosoftAppId" value="XXXXXXXXXXXXXXXXXXXXXXXXXX" add key="MicrosoftAppPassword" value="XXXXXXXXXXXXXXXXXXXX" add key="MicrosoftSpeechApiKey" value="XXXXXXXXXXXXXXXXXXXXXXX" add key="LuisAppId" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" add key="LuisAPIKey" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" add key="LuisAPIHostName" value="westus.api.cognitive.microsoft.com"

SATACHAKRA avatar Apr 17 '18 10:04 SATACHAKRA

As of now all our bots that are configured for continous deployment via BitBucket are not working...none of them. I completely confused as to what went wrong..someone plz help

SATACHAKRA avatar Apr 17 '18 13:04 SATACHAKRA

Are these migration bots or are these new bots?

stevengum avatar Apr 17 '18 17:04 stevengum

I don't know what that means. All the bots have been already migrated to the azure portal long before 31st march. And they were working fine.

SATACHAKRA avatar Apr 19 '18 08:04 SATACHAKRA

Can you please let us know if the issue still persists?

fanidamj-zz avatar Jun 21 '18 23:06 fanidamj-zz

Closing, no response.

EricDahlvang avatar Jul 16 '18 23:07 EricDahlvang