Skip to content

[Node.js SDK, Code Examples] "Node.js quick start" example uses incorrect env variables for MICROSOFT_APP_ID and MICROSOFT_APP_PASSWORD #4068

@pconnell99

Description

@pconnell99

Bot Info

  • SDK Platform: Node.js
  • SDK Version: 3.13.1
  • Active Channels: MS Teams
  • Deployment Environment: Azure Bot Service

Issue Description

Using the example code at https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-quickstart#edit-your-bot , the webchat/emulator fails when deployed to Azure Bot service. The example lines:-

var connector = new builder.ChatConnector({

    appId: process.env.MICROSOFT_APP_ID,

    appPassword: process.env.MICROSOFT_APP_PASSWORD

});

use environment variable names that are different from an Azure Bot deployment. The environment variables generate for an Azure deployment are MicrosoftAppId and MicrosoftAppPassword.

Actual Results

When deploying the example, it will not respond in WebChat or via ngrok (authentication issues possibly) until these lines are fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions