简体   繁体   English

chrome 扩展 WebSocket 连接到“ws://localhost:9090/”失败:连接建立错误:net::ERR_CONNECTION_REFUSED

[英]chrome extension WebSocket connection to 'ws://localhost:9090/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I am trying to build a chrome new tab extension, everything is smooth so far and working great but i keep getting this error sometimes on extension page WebSocket connection to 'ws://localhost:9090/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED and when it happens i will have to reload the extension or rebuild it again for it to stop.我正在尝试构建一个 chrome 新标签扩展,到目前为止一切都很顺利并且运行良好,但有时我在扩展页面上不断收到此错误WebSocket connection to 'ws://localhost:9090/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED当它发生时,我将不得不重新加载扩展或重新构建它以使其停止。 I don't user websocket at all(i guess) i only make couple of request using axios.我根本不使用 websocket(我猜)我只使用 axios 发出几个请求。 here is my manifest这是我的清单

{
  "name": "kura-new-tab",
  "description": "An elegant new tab browser extension made with vue.",
  "version": 1.0,
  "manifest_version": 2,
  "icons": {
    "48": "icons/icon_48.png",
    "128": "icons/icon_128.png"
  },
  "author": "AmrBinBashir",
  "browser_action": {
    "default_title": "kura-new-tab"
  },
  "chrome_url_overrides": {
    "newtab": "index.html"
  },
  "background": {
    "presistent": false,
    "scripts": ["background.js"]
  },
  "permissions": ["background", "storage", "https://*.bing.com/*", "https://*.unsplash.com/*", "tabs"]
}

here is an img of the error这是错误的 img 在此处输入图片说明

问题是我在开发模式而不是生产模式下构建扩展

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Websocket连接被拒绝。 WebSocket与'ws://127.0.0.1:2000 /'的连接失败:连接建立错误:net :: ERR_CONNECTION_REFUSED - Websocket connection refused. WebSocket connection to 'ws://127.0.0.1:2000/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED WebSocket 连接到“wss://ip:8080/”失败:连接建立错误:net::ERR_CONNECTION_REFUSED - WebSocket connection to 'wss://ip:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED WebSocket 连接失败:连接建立时出错:.net::ERR_CONNECTION_REFUSED - WebSocket connection failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 失败:连接建立时出错:.net::ERR_CONNECTION_REFUSED - Failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 与'ws://。/'的WebSocket连接失败:连接建立错误:net :: ERR_NAME_NOT_RESOLVED - WebSocket connection to 'ws://./' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED 网络套接字 | net::ERR_CONNECTION_REFUSED - WebSocket | net::ERR_CONNECTION_REFUSED 错误选项 net::ERR_CONNECTION_REFUSED - Error OPTIONS net::ERR_CONNECTION_REFUSED 使用 ipfsd-ctl 生成 IPFS 守护程序时出现“POST http://localhost:9090/spawn ERR_CONNECTION_REFUSED”错误 - “POST http://localhost:9090/spawn ERR_CONNECTION_REFUSED” error while spawning an IPFS daemon using ipfsd-ctl Heroku上的WebSocket ERR_CONNECTION_REFUSED - WebSocket on Heroku ERR_CONNECTION_REFUSED POST http://localhost:9000/ net::ERR_CONNECTION_REFUSED - POST http://localhost:9000/ net::ERR_CONNECTION_REFUSED
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM