简体   繁体   中英

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. I don't user websocket at all(i guess) i only make couple of request using 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 在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM