Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in chrome dev tools - Unchecked runtime.lastError: The message port closed before a response was received. #270

Open
vk011 opened this issue Feb 4, 2019 · 42 comments

Comments

@vk011
Copy link

vk011 commented Feb 4, 2019

An error appears in the console in chrome dev tools upon launching Live Server

Unchecked runtime.lastError: The message port closed before a response was received.
  • browser - Chrome (desktop) version 72
  • Live Server: 1.30.2
  • Platform: Windows
  • Visual Studio Code: latest
@adesugbaa
Copy link
Collaborator

What version of the extension are you using?

@vk011
Copy link
Author

vk011 commented Feb 5, 2019

should be the latest one, 5.3.1 I think. This actually only started happening recently.

@adesugbaa
Copy link
Collaborator

Please download 5.4.0 from this repo (under Releases), and try installing that manually.

View -> Command Pallete... -> Extensions Install from VSIX...

If there is any error, please paste the errors or screenshot from the Developer Tools.

@vk011
Copy link
Author

vk011 commented Feb 5, 2019

Hello,
I removed the live server version I had and I downloaded LiveServer-5.4.0.vsix from releases and installed it, however it looks identical to what I had before (still says latest update was 5.3.1 in the description) and I still get the same error in console. Just to make it clear the extension works, but there's that annoying console error message still:

Unchecked runtime.lastError: The message port closed before a response was received.

@vk011
Copy link
Author

vk011 commented Feb 8, 2019

Live server just updated to actual v 5.4 this time but the same error still persists in chrome.

@dchapo
Copy link

dchapo commented Feb 15, 2019

Hi vk011 - This might be an issue with an extension you have from chrome. Try disabling them (chrome://extensions) and enabling them one by one to find the culprit. This worked for me.

@vk011
Copy link
Author

vk011 commented Feb 15, 2019

@dchapo That was it man, thanks!

@rohitkrishna094
Copy link

@vk011 Hey which extension caused the problem for you?

@vk011
Copy link
Author

vk011 commented Feb 17, 2019

@rohitkrishna094 I think it was some kind of a video downloader, not sure which one though.

@ghost
Copy link

ghost commented Feb 21, 2019

I had the same problem today and resolved it by disabling the following Chrome Extension;

https://chrome.google.com/webstore/detail/video-downloader-professi/elicpjhcidhpjomhibiffojpinpmmpil?hl=en

@ritwickdey
Copy link
Owner

Hi @everyone. I figured out why it's happening. a small bug is there. You'll get an update with the fixes in this weekend. :)

@bbb324
Copy link

bbb324 commented Mar 13, 2019

Anything else? I still get such error with chrome 72.0.3626.121

@ernsheong
Copy link

ernsheong commented Mar 17, 2019

For those coming here to debug this error in Chrome 73, one possible reason is that Chrome 73 onwards disallows cross-origin requests in content scripts.

More reading:

  1. https://www.chromium.org/Home/chromium-security/extension-content-script-fetches
  2. https://www.chromestatus.com/feature/5629709824032768

This affects many Chrome extension authors, who now need to scramble to fix the extensions because Chrome thinks "Our data shows that most extensions will not be affected by this change."

UPDATE: After fixing my extension CORS issue, I still see this error. I don't know what is causing it :/

@ghost
Copy link

ghost commented Apr 2, 2019

Hi, any updates on this?

@jonathan-c
Copy link

Wondering if there is any update on this as well

@davision
Copy link

Subscribing here.

@szfiligon
Copy link

I have solved this problem, some extention will cause this error, so you can use the no trace mode of chrome to develop, and ctrl + shift + N can come in this mode, then you can see the error is gone.

@BilalRratimi
Copy link

I have solved this problem, a video down-loader extension will cause this error,

The message port closed before a response was received

https://chrome.google.com/webstore/detail/meddlemonkey/moihledlmchhofenpacbhphnbnpakgmo

@charisTheo
Copy link

was the Stylish extension for me causing this problem. I disabled and re-enabled it and now I don't get those logs

@notAnyMore778899
Copy link

I had same Error with this following chrome Extension
https://chrome.google.com/webstore/detail/foxit-pdf-creator/cifnddnffldieaamihfkhkdgnbhfmaci

@ping2anilsharma
Copy link

Unchecked runtime.lastError: The message port closed before a response was received.

Seems that some chrome extension that you have installed recently is creating problem. If you remove the recent installed extension then it will solve your problem.
See your chrome extension:
chrome://extensions

@JiiXaa
Copy link

JiiXaa commented Jun 12, 2019

Hey i found two solutions to this bug/error:

Incognito browsing is quickest option or:

try disable extensions, and find which one cause that issue, for me was : Google Docs Offline
1.7

@wakudiallah
Copy link

I have solved this problem, a video down-loader extension will cause this error,

The message port closed before a response was received

https://chrome.google.com/webstore/detail/meddlemonkey/moihledlmchhofenpacbhphnbnpakgmo

solved,,,, thank you

@ghost
Copy link

ghost commented Jul 9, 2019

I"m under the impression we're mixing two distinct cases in this discussion:

Case #_1. You're a user that have extensions installed, and one or more of them is causing the problem.

  • In this case, identifying and disabling the extension is the best way, as already suggested above.

Case #_2 - You're a developer and your extension is throwing the error.

My case is the #2 above and I'm still struggling to implement a complete solution. I'll publish the solution here, in case I find one.

@atulcodex
Copy link

I also solve this error. This error comes by what font extension see after disabling it. optional follow me @atulcodex

@davifsroberto
Copy link

Hi vk011 - This might be an issue with an extension you have from chrome. Try disabling them (chrome://extensions) and enabling them one by one to find the culprit. This worked for me.

Tanks!!
extension that was wrong here:
https://chrome.google.com/webstore/detail/cuponomia-cupom-e-dinheir/gidejehfgombmkfflghejpncblgfkagj?hl=pt-BR

@dahodd
Copy link

dahodd commented Jul 26, 2019

Google Publisher Toolbar gave me this problem

@bermudez
Copy link

bermudez commented Aug 7, 2019

Norton Safe Web 3.9.0.11 (Chrome Extension) was causing the error for me.

@emzola
Copy link

emzola commented Aug 21, 2019

When I disabled 360 Total Security anti virus chrome extension, the problem was resolved.

@Kongoda
Copy link

Kongoda commented Sep 1, 2019

Go to chrome://extensions/ and determine which extension is causing the error.

@skyrim23
Copy link

skyrim23 commented Sep 2, 2019

I too had this problem, it's resolved now! Just try disabling the chrome extension video down loader. The same will work with brave browser.

@jefflundberg
Copy link

The AMP Browser Extension as of version 1.3 (last updated January 7, 2019) also has this issue.

@matthewstuart
Copy link

I haven't read the whole thread so don't know if it's already been mentioned, but my error was caused by Color Contrast Analyzer. Just thought I'd share!

@ariel-frischer
Copy link

I'm getting this error from the Shortkeys extension: Version-2.2.7

@andorey
Copy link

andorey commented Nov 26, 2019

Hi vk011 - This might be an issue with an extension you have from chrome. Try disabling them (chrome://extensions) and enabling them one by one to find the culprit. This worked for me.

thanks, man I found my bug

@vlasscontreras
Copy link

Hi vk011 - This might be an issue with an extension you have from chrome. Try disabling them (chrome://extensions) and enabling them one by one to find the culprit. This worked for me.

In my case, the Pinterest Tag Helper extension was causing this error.

Thank you!

@lichiy-web
Copy link

The same error in chrome was caused by the MeddleMonkey extension.

@payose
Copy link

payose commented Jan 6, 2021

faced same issue on chrome, i disabled meddle monkey extension, and now everything is just fine.

@chiranjib0
Copy link

for me the culprit is color contrast analyzer extension :)

@VasileDurlesteanu
Copy link

Solved the issue of the LiveServer Conflict, by deleting Typio Form Recovery

@RiccardoBiffi
Copy link

I want my front-end to interact with Metamask and a bunch of other extensions. This error forces me to reload the page the first time I run my app before I can interact with Metamask.

NB this error doesn't happen when I run a live web server with this Python command (all extensions enabled):
py -m http.server

I believe this is a bug that needs to be fixed. It's still present on v5.7.5

@miserone
Copy link

malwarebytes browser guard extension started showing these recently:
image

disabling the extension stopped them from appearing.

hiding them is also an option
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests