The message port closed before a response was received.

时间:2022-06-07 23:21:53

问题描述:Chrome控制台报错:Unchecked runtime.lastError: The message port closed before a response was received.

问题分析:非检查型的运行错误:响应前信息端口关闭。

问题原因:浏览器的扩展程序使得端口意外关闭

解决方案:逐个关闭扩展程序,排查导致问题的扩展程序。

点击Chrome的右上角三个点--点击更多工具--点击扩展程序--关闭xx扩展程序(例如我的Chrome,关闭了迅雷下载支持即解决)

The message port closed before a response was received.