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

Viewed 30415

I am getting the following error in Chrome on Mac (Version 71.0.3578.98) while accessing my angular app:

targets/showTargetsByStream:1 Unchecked runtime.lastError: The message port closed before a response was received.

My app is accessing REST api hosted by a node express server.

Above error is coming for every page, like navigating to new URL within the app.

Also noticed that Safari is not throwing above error.

Appreciate any help in resolving this error.

7 Answers

I've experienced the same problem and noticed that it depends on running extensions.

Try disabling them (or you can use incognito mode if your settings do not allow extensions) to check if this is the cause. If so, you can enable them one by one and identify the guilty one.

In my case it was the Pinterest extension that causes the issue.

Click on the gear icon in the console window and put a tick in the "Selected context only" box.

Selected context only ignores all of the nested browser extension contexts.

for me, It was the "Stayfocusd" extension that causes the problem. By removing it, solves my problem.

I've had the same issues as to where i'm running my react app and it would run this error several times in the Console log.

What I've done to try and fix this issue is that I disabled a few of my extensions (Piggy - Automatic Coupons & Cash Back "Extension" to be more specific) then I refreshed the page and now I don't get this stressful error:

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

Other extensions may cause this issue for you but the Piggy - Automatic Coupons & Cash Back extension is the main extension that was causing this issue.

Good luck!

for me, "BuiltWith Technology Profiler" extension cause this error and when uninstall it, error not occur again

It was the HonorLock extension causing this for me.

In my case was Norton Extension...

Related