Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Exception: Error: spawn UNKNOWN #377

Closed
aaroncalderon opened this issue Sep 6, 2016 · 9 comments
Closed

Uncaught Exception: Error: spawn UNKNOWN #377

aaroncalderon opened this issue Sep 6, 2016 · 9 comments

Comments

@aaroncalderon
Copy link

image

Only way I have been able to have the start-hot command to show me the interphace is by commenting out the installExtensions() call line 36

I do not know if being behind a corporate proxy has anything to do with the issue.

@amilajack
Copy link
Member

Make sure you have the latest node version installed along with the latest npm version:

install latest npm version

npm i -g npm

Then try this:

rm -rf node_modules # Idk if this will work on powershell but just delete the node_modules folder
npm cache clean
npm i
npm run dev

If that doesnt work, try deleting the entire electron-react-boilerplate directory, re-clone it, and follow those steps

@aaroncalderon
Copy link
Author

@amilajack I followed your instructions. But, I sitll got the same error.

I can, however, get the guy if I use Visual Studio Code debugger with the following launch.json.

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/main.development.js",
            "stopOnEntry": false,
            "args": [],
            "cwd": "${workspaceRoot}",
            "preLaunchTask": null,
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd",
            "runtimeArgs": [
                "--nolazy",
                "--enable-logging",
                "--v=0",
                "-r",
                "babel-register",
                "-r",
                "babel-polyfill"
            ],
            "env": {
                "NODE_ENV": "development",
                "HOT": 1
            },
            "console": "internalConsole",
            "sourceMaps": false,
            "outDir": null
        }
    ]
}

Once I get the renderer process displayed, i see the following on the console:

c:\dev\p\electron\react-boilerplate-master/node_modules/.bin/electron.cmd --debug-brk=6210 --nolazy --enable-logging --v=0 -r babel-register -r babel-polyfill main.development.js

Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 3 more times
Failed to fetch extension, trying 2 more times
Failed to fetch extension, trying 1 more times
Failed to fetch extension, trying 0 more times
Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 3 more times
Failed to fetch extension, trying 2 more times
Failed to fetch extension, trying 1 more times
Failed to fetch extension, trying 0 more times

I did a little more digging and the error returned from download-chrome-extensions is

{ Error: connect ECONNREFUSED 216.58.194.110:443
    at Object.exports._errnoException (util.js:1008:11)
    at exports._exceptionWithHostPort (util.js:1031:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '216.58.194.110',
  port: 443 }

So, I think I may have two different issues on my hand which may be related.

I will keep digging and report with any findings.

@amilajack
Copy link
Member

amilajack commented Sep 20, 2016

Try this:

PORT=1212 npm run dev

It could be that your port 3000 is already being used. Changing it with env variables could solve that if that is the issue.

Also sorry for the late response.

@jhen0409
Copy link
Member

c:\dev\p\electron\react-boilerplate-master/node_modules/.bin/electron.cmd --debug-brk=6210 --nolazy --enable-logging --v=0 -r babel-register -r babel-polyfill main.development.js

Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 3 more times
Failed to fetch extension, trying 2 more times
Failed to fetch extension, trying 1 more times
Failed to fetch extension, trying 0 more times
Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 3 more times
Failed to fetch extension, trying 2 more times
Failed to fetch extension, trying 1 more times
Failed to fetch extension, trying 0 more times

Maybe the same with #268, it mean you can't connect to Chrome Store?

@aaroncalderon
Copy link
Author

@amilajack I will try that when I have a chance. I know, however, that the port is not in use because I am not running any other process that is using it. But I do not see how the port may be related.

@jhen0409 I'm on windows 7 and yes; that is indeed the issue. I am behind a corp proxy and I have set cntlm and my .npmrc and environmenr variables are set to use it.

However, I have never had issues with electron trying to connect to the internet. I use electron for other projects as well.

My suspicion is that the node process that downloads the extensions is not using my proxy settings.

@amilajack
Copy link
Member

My suspicion is that the node process that downloads the extensions is not using my proxy settings.

That may be it. Our tests are @ 100% coverage so I dont this it is an issue with the repo.

@amilajack
Copy link
Member

@aaroncalderon try following the installation debugging solutions and let me know if this works for you.

@aaroncalderon
Copy link
Author

aaroncalderon commented Oct 5, 2016

Let me take a look at this.

Working on it...

@aaroncalderon
Copy link
Author

I'm getting the same error.

So, I think we should close this issue since I think it is not directly related with electron-react-boilerplate directly.

I think the issue is a combinatin of the electon-devtools-installer and my corp proxy not playing nice with each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants