-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions bots do not work when running locally (LUIS, QNA and other settings are not properly received) #7691
Comments
Shiproom - I am not able to repo this with the currently nightly. let's get a second opinion to see if we an repro the issue |
Shiproom - @benbrown will try and repro this a.m. |
I CAN reproduce this. |
When running locally, Composer passes sensitive settings like the LUIS endpoint key, QNA endpoint key, and Microsoft App Password via command line arguments to the runtime, for example: (pseudocode) see code here:
This works fine for normal web apps that accept these parameters and use them. However, the The proposed workaround is that developers using the func runtime locally create an |
@sgellock @tracyboehrer per request, updating issue with investigation findings. I have identified a potential solution to supporting this in Composer. @benbrown @joshgummersall please review the below: The Azure Functions runtime by default makes use of environment variables for the purposes of supplying configuration to the application. For local development using the Azure Functions CLI, The CLI provides an API, Following the repro steps above, I was able to successfully get my bot running by issuing the following commands manually when in the same directory containing
For sanity, here is web chat showing successful dialog for .NET Functions in Composer: ...and here is JS Functions in Composer: To that extent, making the assumption that it has access to the corresponding secrets, I believe that we can update the runtime extensions logic in Composer to simply invoke the Finally, as last sanity check, per the Azure Functions documentation, values in local.settings.json will only apply when being run locally - in other words, this should not clobber the contents of our appsettings.json values in a deployed context. N.B.: For .NET, since the app runs from the context of the build output directory ( |
Shiproom - let's see what a PR would look like and assess for R13 |
Shiproom - approved - functions with services is P0 |
Describe the bug
Dotnet function bots throw an invalid LUIS subscription key error when trying to call LUIS
Version
Version: 2.0.0-nightly.243234.8264ac4
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
Browser
OS
To Reproduce
Steps to reproduce the behavior:
Updated
Expected behavior
The call should go through
Screenshots
Additional context
The fix for this issue is probably similar to the fix for this issue since the errors are fairly similar.
The text was updated successfully, but these errors were encountered: