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

Stevan
Stevan
312 Points
20 Posts

I'm getting following error in google-chrome browser from few days:

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

I don't know what is happening here. Also did not do anything change in source code. I'm using asp.net mvc + jquery. This error only shows in Chrome browser.

Views: 18545
Total Answered: 2
Total Marked As Answer: 1
Posted On: 26-May-2019 05:44

Share:   fb twitter linkedin
Answers
Brian
Brian
2416 Points
14 Posts
         

One posible reason for this is that Google Chrome 73 onward disallows cross-origin requests in content scripts from extensions:

"In Q1 2019, Chrome is removing the ability to make cross-origin requests in content scripts for new and previously unaffected extensions, while maintaining an "allow list" of affected extensions that may continue to make such requests for the time being. This change starts in Chrome 73 (version 73.0.3666.0), which will reach Beta channel around February 7 and Stable channel around March 12. We have identified that less than 1% of Chrome Web Store extensions with more than 1000 users will be affected, only 18 of which are in the top 1000 extensions. The initial allowlist contains around 70 extensions."

See references:

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

You can try to use Chrome in Incognito mode, where extensions are disabled, to see if that's resolved the problem. In normal mode case you can disable extensions one by one via chrome://extensions/ until you find the one causing the problem and disable that one extension.

 

Posted On: 27-May-2019 07:44
Stevan
Stevan
312 Points
20 Posts
         

Thanks Brain,

It was resolved by disabling "Google Publisher Toolbar" extension from chrome browser.

Posted On: 30-May-2019 08:02
 Log In to Chat