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.

Timed out while waiting for activity

See original GitHub issue

Screenshots

IMG4

Version

WebChat 4.11.0

Describe the bug

Webchat times out and shows a waring message under the browser console for the first welcome message. Due to timed out it takes some time to show the welcome message. It appears the reply to message has a wrong id or none existent ID. This happens in the latest version of webchat v4.11.0 but I believe it happens in the previous v4.10.1 without logging in the consol.

Expected behavior

WebChat should not timed out for the initial welcome message.

Code to trigger the welcome message

    if ('DIRECT_LINE/CONNECT_FULFILLED'.equalsTo(action.type)) {
      // When we receive DIRECT_LINE/CONNECT_FULFILLED action, we will send an event activity using WEB_CHAT/SEND_EVENT
      this.directLine.postActivity({
        from: { id: this.user.id, name: this.user.name },
        name: 'webchat/join',
        type: 'event',
        value: 'token'
      }).subscribe(
        id => console.log(`Posted activity, assigned ID ${id}`),
        error => console.log(`Error posting activity ${error}`)
      );
    }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:25 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amal-khalafcommented, Feb 5, 2021

fixed by PR #3705 I verified that with above PR i no longer see the timeout for the after the initial send event activity is sent

1reaction
dominiquehunzikercommented, Jan 2, 2021

I believe this is not just a problem which occurs while sending welcome messages, but also for proactive messages.

When I run the proactive messages sample as a bot and launch the webchat using the getting started sample, then I also get the same warnings for the proactive messages.

chat

Read more comments on GitHub >

github_iconTop Results From Across the Web

TimeoutError: Timed out waiting fo… | Apple Developer Forums
Getting this error when trying to preview an app on various devices. It's occurring when I select iPhone 13 and iPhone 11, but...
Read more >
Error with read mail activity - Timed out while waiting for Mail ...
Hi, We have a job which reads emails from outlook and creates a ticket. The job was running fine couple of days back...
Read more >
android - Timed out waiting for process to appear on device
Just insert the "Default Activity" under "Launch Options" and your application will run again on your device. Share.
Read more >
DataStage job fails with code=-14 [Timed out while waiting for ...
This error generally happens when jobs are called from job sequence or dsjob command is used from a script. Symptom. DataStage job fails...
Read more >
Request Timeout The server timed out while waiting for the ...
Clear the cache and cookies only from websites that cause problems. "Clear the Cache": Firefox/Tools > Options > Advanced > Network > Cached...
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