vscode-live-server icon indicating copy to clipboard operation
vscode-live-server copied to clipboard

Server error: Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

Open aliasflavius opened this issue 2 years ago • 2 comments

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

After the LiveServer instance runs for a while it outputs this error message:

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

Expected behavior

Not throwing any error while running normally.

Environment

Browser:

- [X ] Chrome (desktop) version 102.0.5005.63 (Official Build) (64-bit)
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: 5.7.5
- Platform:  Windows 10
- Visual Studio Code: Version: 1.67.2 (user setup)

Others

This appears to be a Node or NPM package issue. Found it opened here: https://github.com/mozilla/webextension-polyfill/issues/130

You might be able to fix it by returning a dummy response.

aliasflavius avatar Jun 08 '22 01:06 aliasflavius