Skip to content

Add Web Chat FAQ #1961

Open
Open

Description

FAQs

Web Chat secret / token management

The following link provides several examples on token management: Web Chat secret management

Receive "TypeError: Super expression must either be null or a function" on < 4.6.0

In short, speech is being enabled in an environment that denied access to microphone.

For details, please read #2855.

  • Web Chat < 4.6.0: The error message was incorrectly showing "Super expression must either be null or a function". Instead, it should say, speech recognition/synthesis cannot be enabled because microphone access is denied.

  • Web Chat >= 4.6.0: We have fixed the error message.

The following environment does not support microphone access and speech should not be enabled.

  • Mobile iOS apps
  • Hosting in <IFRAME> on Chrome/Edge/Firefox without Feature Policy set
  • Hosting on insecure HTTP
  • IE11

Receive E401 when running npm install botframework-webchat on or after 4.9.2

On >= 4.9.2, running npm install botframework-webchat results in E401.

This happen if you are using a custom registry which require authentication. And you authenticate using a per-project .npmrc file.

Background

npx will pick up the registry on ./.npmrc, but it can't pick up the token there. It can only pick up the token at ~/.npmrc.

Workaround

Instead of authenticating on ./.npmrc file (local project .npmrc), please authenticate against ~/.npmrc (per-user .npmrc file).

The actual location of ~/.npmrc can be found by running npm config get userconfig.

Related issues

There is an issue filed to Azure DevOps about inconsistent handling of .npmrc file, microsoft/azure-pipelines-tasks#13265, it usually lead to this issue.

Update activity renderer

The custom activity renderer will pass multiple arguments. When sending the arguments downstream, please make sure all the arguments are sent by using rest operators. For example:

const activityMiddleware = () => next => (...args) => {
  return next(...args);
};

Questions need to formalize into a section

Do we want to provide a frequently asked questions document on this repo? Team, please add to the list below of topics that would be added to the FAQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area-docsDocumentation requiredarea-mockbotIssues that need to be addressed on MockBotbacklogOut of scope for the current iteration but it will be evaluated in a future release.feature-requestAzure report labelfront-burnerteam-agilityReduce friction in Web Chat's development process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions