microsoft / botbuilder-js

Welcome to the Bot Framework SDK for JavaScript repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using JavaScript.
https://github.com/Microsoft/botframework
MIT License
683 stars 279 forks source link

Code downloaded from Azure via "download bot code" is inaccurate #4753

Open sasaunde opened 1 month ago

sasaunde commented 1 month ago

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Versions

What package version of the SDK are you using. qmaker-bot-msi 1.0.0 What nodejs version are you using 14 (tried several) What browser version are you using Chrome What os are you using Mac

Describe the bug

Give a clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Azure Bot Services'
  2. Click on 'Download bot source code'
  3. Open code in IDE, configure parameters to talk to Azure language, start up via Bot Emulator, send message
  4. See error: The bot encountered an error or bug.

Bot said: To continue to run this bot, please fix the bot source code.

Expected behavior

Give a clear and concise description of what you expected to happen. Bot communicates with Azure language and displays the response the language sends

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

The URL created by botbuilder-ai ~4.20.0 (which was downloaded in the package.json of the bot) is a HTTP POST to ${this.endpoint.host}/language/:query-knowledgebases?projectName=${this.endpoint.knowledgeBaseId}&deploymentName=${deploymentName}&${ApiVersionQueryParam};

The Language Service requires a HTTP GET to `${this.endpoint.host}/language/query-knowledgebases/projects/${this.endpoint.knowledgeBaseId}/qnas?api-version=2021-10-01&deploymentName=${deploymentName}

dmvtech commented 1 day ago

Hi @sasaunde

How was this bot originally created and published?