Add Web Chat FAQ #1961
Labels
area-docs
Documentation required
area-mockbot
Issues that need to be addressed on MockBot
backlog
Out of scope for the current iteration but it will be evaluated in a future release.
feature-request
Azure report label
front-burner
team-agility
Reduce friction in Web Chat's development process
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.
<IFRAME>
on Chrome/Edge/Firefox without Feature Policy setReceive
E401
when runningnpm install botframework-webchat
on or after4.9.2
On >= 4.9.2, running
npm install botframework-webchat
results inE401
.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 runningnpm 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:
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
create-react-app
or other NPM-based appindex-es5.ts
botframework-webchat/ie11
to load the polyfill (Better polyfilling for IE11 in NPM #2511)SpeechGrammarList.phrases
to an array of stringswss://*.stt.speech.microsoft.com
en
instead ofen-US
(andfr
instead offr-FR
). Cognitive Services did not recognize this type of language, thus it return HTTP errors when it trying to recognize usingen
en
orfr
zone.js
zone.js
polyfilledObject.defineProperties
regardless the browser natively implemented it or notSymbol
-based key into an objectSymbol.iterator
, and it failed to insert into an object to make it iterableObject.defineProperties
so the app no longer use the flawed implementationDate
object<IFRAME>
to embed Web Chat, before putting it on Dynamics 365 Portal<IFRAME>
is not a viable solution, please submit a support ticket to Dynamics 365 Portal teamABC\nDEF
is on the same line? AndABC\n\n\nDEF
only have a single line break between them?<p>ABC DEF</p>
and<p>ABC</p><p>DEF</p>
respectivelytextFormat
toplain
on the bot response.js
filetext/javascript
is not correcttext/javascript; charset=utf-8
E2 80 99
(hex)text/javascript; charset=utf-8
output.ascii_only
to trueE2 80 99
(hex) into\u00E2\u0080\u0099
in your JS file/stream?
, which is the Web Socket connection to Azure Bot Serviceswebchat-es5.js
in a browser?cURL -l -L -o nul -H "Accept: *" https://cdn.botframework.com/botframework-webchat/latest/webchat-es5.js
The text was updated successfully, but these errors were encountered: