How to fix 'Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.'

荒凉一梦 提交于 2019-12-03 14:33:43

问题


I recently uninstalled and reinstalled Postgres10. I then went to run a Node/Express/React application that relies on connecting to a Postgres database (and communicating with it using Sequelize).

Initially it could not connect to the database. I realized the uninstall process removed my old databases, so then I went and re-created a new one with the name that this application connects to. Then when I restarted the app (both server and client), front-end interaction with the database was working again like normal - writing new users and reading them for authentication etc.

However, I now have the following error in the Chrome Dev Tools console on every page-load of the app:

Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist

This error makes a reference to localhost/:1. When I hover over this, it shows http://localhost:3000/, the address I'm viewing the app at in the browser.

Anyone have an idea what is going on? Most of the other threads I've found that bring up this error seem to be related to someone trying to develop a Chrome Extension, and even then they tend to have very few responses.


回答1:


I'd been getting the exact same error (except my app has no back-end and React front-end), and I discovered that it wasn't coming from my app, it was actually coming from the "Video Speed Controller" Chrome extension. If you aren't using that extension, try disabling all of your extensions and then turning them back on one-by-one?




回答2:


The error is often caused by a chrome extension. Try disabling all your extensions, the problem should disapear.




回答3:


Solution

For Chrome:

  1. You have the window open with the console error, open up a second new window.

  2. In the second window, go to: chrome://extensions

  3. Disable each extension by toggling (the blue slider on the bottom right of each card), and refresh the window with the console after toggling each extension.

  4. Once you don't have the error, remove the extension.




回答4:


Removing 'Udacity Frontend Feedback' chrome extension solved the issue for me.




回答5:


This was happening in Chrome for me and I discovered it was McAfee WebAdvisor. Once I disabled it, the message went away:




回答6:


It was tab bnundler for me: https://chrome.google.com/webstore/detail/tab-bundler/ooajenhhhbdbcolenhmmkgmkcocfdahd

Disabling the extension fixed the issue.




回答7:


For me the error was due to the onelogin chrome extension. Removing it fixed the issue.




回答8:


Cacher Extension in my case - but yeah disable each and then reload page




回答9:


It was a few extensions for me. Disabling and then re-enabling fixed the problem though. Grammarly was one of them. Hope the errors don't return.




回答10:


I was testing my extension on edge://extensions/ page/tab. Testing it on another tab solved this issue. I think this may also occur for chrome://extensions/.



来源:https://stackoverflow.com/questions/54619817/how-to-fix-unchecked-runtime-lasterror-could-not-establish-connection-receivi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!