question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Direct Line Speech throw "actions of null" error when bot is on unsupported region

See original GitHub issue

I was using this example to implement directline speech in webchat. Here is the script I used

<div id="webchat"></div>
    <script>
        (async function () {
            const store = window.WebChat.createStore({}, ({ dispatch }) => next => action => {
                if (action.type === 'DIRECT_LINE/CONNECT_FULFILLED') {
                    dispatch({
                        type: 'WEB_CHAT/SEND_EVENT',
                        payload: {
                            name: 'webchat/join',
                            value: 'name'
                        }
                    });
                }
                return next(action);
            });

            const adapters = await window.WebChat.createDirectLineSpeechAdapters({
                fetchCredentials: {
                    region: 'region',
                    subscriptionKey: 'key'
                }
            });


            window.WebChat.renderWebChat(
                {

                    ...adapters, store
                },
                document.getElementById('webchat')
            );

            document.querySelector('#webchat > *').focus();
        })().catch(err => console.error(err));
    </script>

seems like “…adapters” is not supported in Edge or IE, How can I change it so that it will be working in Edge and IE ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Hari-c4commented, May 11, 2020

Hi, today we have same problem with westeurope region but we are unable to change the region of service. immagine We use the npm package. Until saturday I’m sure that it works, any help?

Thanks

I’m also facing this issue again, I have raised a support request from Azure. Will keep you updated, if i get to resolve this.

0reactions
Hari-c4commented, Jun 24, 2020

Hi, For me this issue was resolved without making any changes in code or configuration. I believe this issue was from the speech API side. It got resolved 3 to 4 days after reporting and it never occurred again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Direct Line Speech in your bot in Bot Framework SDK
Use Direct Line Speech with bots. See how bots can use a streaming capability based on WebSockets to exchange messages with this channel....
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug:1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, introduce a simple stability voting system and have a core team...
Read more >
Your XAML Solutions for most common issues (WIKI POST ...
Error while running the main xaml. System.TypeLoadException: Could not load type 'UiPath.Core.Activities.TaskAsyncCodeActivity.
Read more >
Automate Desktop and Automate Plus/Ultimate - Fortra
The Dataset (Create) activity no longer throws an error when a dataset name contains an expression. Focus now correctly returns to the Task...
Read more >
All other Rome fixes - Product Documentation | ServiceNow
Putting any value on Decimal or Integer field throws an error in the console and ... The workspace form header UI actions cover...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found