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

后端 未结 19 1220
一个人的身影
一个人的身影 2021-02-01 11:43

I have the following error in the Chrome Dev Tools console on every page-load of my Node/Express/React application:

Unchecked runtime.lastError: Could not es

相关标签:
19条回答
  • 2021-02-01 12:21

    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.

    0 讨论(0)
  • 2021-02-01 12:24

    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?

    0 讨论(0)
  • 2021-02-01 12:25

    If you are an extension developer see this Chrome Extension message passing: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist

    The core of the problem is that chrome API behavior change and you need add a workaround for it.

    0 讨论(0)
  • 2021-02-01 12:27

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


    I "achieved" this error after

    1. installing the Debugger for Chrome extension in Visual Studio Code,
    2. debugging my code, and
    3. closing and reopening the non-debugging Chrome window. (I had left Chrome running my app while debugging.)

    Solutions:

    • Stop using the extension.
    • Refresh the non-debugging Chrome window.
    • Use a different debugger.

    Of course, the console error reappears when I redo steps 2 and 3 above with the Debugger for Chrome. This encourages me to use other debuggers instead. Then I don't mistakenly think my own code produced the console errors!

    0 讨论(0)
  • 2021-02-01 12:27

    For me this was caused by :

    Iobit Surfing Protection & Ads Removal extension

    which comes with Iobit advanced system care software. However, the console might provide you with relevant information on what you need do disable or the cause for that problem.

    The likely cause of this error, as per google searches is because that extension which causes the error, might be using the chrome.runtime.sendMessage() and then tries to use the response callback.

    Error shown in the console

    Hope this information helps. Have a great day!

    0 讨论(0)
  • 2021-02-01 12:28

    I get the message only on the first Chrome page =
    When Chrome is not running, and I open it - either directly or by double-clicking on a page on my desktop.
    (I don't know if this matters, but I have "Continue running background apps when Google Chrome is closed" off.)
    So, I'm assuming it's Chrome's crap spying/"enhancing user experience" attempt.
    I don't know what it's trying to send, but I'm glad it's not able to! :)
    So, second (or any but first) tab has no error.
    == No need to disable anything (extensions, etc.).

    0 讨论(0)
提交回复
热议问题