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

Failed to load resource: the server responded with a status of 404 (Not Found) #28

Open
rsrini7 opened this issue May 5, 2015 · 10 comments

Comments

@rsrini7
Copy link

rsrini7 commented May 5, 2015

After installing the robotnik, i am getting error in my chrome console when accessing the URL.

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8057/socket.io/socket.io.js

@makenai
Copy link
Owner

makenai commented May 5, 2015

Hi thanks for reporting the issue!

It looks like you're running the version in npm. Sorry for the inconvenience - it was left in there accidentally. socket.io isn't currently being used, so the error should be harmless if annoying.

We're currently going through a bit of a rewrite, switching out the webserver back end for one built on Electron. I should have a better working version merged in a day or two.

Let me know if you have any trouble, and I'll be happy to comment on this ticket when there is a new version published.

@rsrini7
Copy link
Author

rsrini7 commented May 10, 2015

Thanks.

today i tried with the latest and its failing as follows. Please help

OS: Windows_NT 6.2.9200 x64

npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\InstallsEdu\nodejs\node.exe" "C:\InstallsEdu\nodejs\no
de_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: bower install && gulp
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'bower install && gulp'
.
npm ERR! This is most likely a problem with the robotnik package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install && gulp
npm ERR! You can get their info via:
npm ERR! npm owner ls robotnik
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\manasasiddhu\nodews\robotnik\npm-debug.log

@makenai
Copy link
Owner

makenai commented May 10, 2015

Sorry, the latest version still isn't quite ready for public use. I'm planning on having a Windows executable eventually through the Electron app integration and a Chrome plugin, but only about half way there right now. If you can ignore the socket-io warning, the version in npm is still better to use for now.

I'd like to help you debug this though if you'd like.

Right now because of way Electron is written, I can only get things working with io.js v1.8.1 because it uses the same version of the v8 engine as Electron. I'm not sure of that status of that on Windows.

Would you mind sharing your npm-debug.log?

Usually the problems I've seen on Windows involve the native compiled libraries - currently that's just node-serialport and Electron (possibly). Sometimes those fail because the host computer doesn't have build tools installed. I also see that node-serialport only supports Windows 7 and above.

@rsrini7
Copy link
Author

rsrini7 commented May 10, 2015

Thanks for your quick response. I just started learning the Nodejs. If windows creates problem, i will try in my ubuntu and let you know. Please check my log file for your analysis.
https://drive.google.com/file/d/0B5Na-S2L_RdIRnJyMklTTWtmLVU/view?usp=sharing

@rsrini7
Copy link
Author

rsrini7 commented May 10, 2015

I tried in Ubuntu 14.10

~/nodejsws/robotnik$ sudo npm install
npm WARN optional dep failed, continuing [email protected]
npm ERR! fetch failed https://registry.npmjs.org/express/-/express-4.12.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/public-encrypt/-/public-encrypt-2.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-2.0.7.tgz
npm ERR! fetch failed https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/repeating/-/repeating-1.1.2.tgz

[email protected] install /home/rsrini/nodejsws/robotnik/node_modules/electron-prebuilt
node install.js

  • Hope installed correctly even though some errors occured in the beginning of the npm install and rest all fine.
  • then i put the command (with or without sudo) npm start

[email protected] start /home/rsrini/nodejsws/robotnik
electron .

[8671:0510/162019:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.

"Browser opened blank." when searching the error in google, i got the below url. Need your guidance.
https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment

@makenai
Copy link
Owner

makenai commented May 12, 2015

Thanks for the details! I've downloaded an Ubuntu 14 image, but haven't had a chance to test it yet.

If you're eager, I'd recommend trying nvm instead of the node version installed on Ubuntu. https://github.com/creationix/nvm - nvm installs multiple versions of node.js and io.js in your home directory so that you don't need to use 'sudo' to install modules.

There is an '.nvmrc' in the repo that specifies the version I use. Once you go into the project directory, you can just: nvm install to install that version, and then try npm install again to see if that works better.

@rsrini7
Copy link
Author

rsrini7 commented May 12, 2015

Thanks for your suggestion. Following are the observations.

nvm install
Found '/home/rsrini/nodejsws/robotnik/.nvmrc' with version <iojs-v1.8.1>
Version 'iojs-v1.8.1' not found - try nvm ls-remote to browse available versions.

->then->

nvm ls-remote iojs
N/A

from stackoverflow.. Did
-- nvm.sh --
nvm_download() {
16 if nvm_has "curl"; then
17 curl -k $*
18 elif nvm_has "wget"; then
19 # Emulate curl with wget
...
}

->then->

nvm install
Found '/home/rsrini/nodejsws/robotnik/.nvmrc' with version <iojs-v1.8.1>
Version 'iojs-v1.8.1' not found - try nvm ls-remote to browse available versions.

->then->

rsrini@rsrini-desktop:~/nodejsws/robotnik$ NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs NVM_IOJS_ORG_VERSION_LISTING="https://npm.taobao.org/mirrors/iojs/index.tab" nvm install
Found '/home/rsrini/nodejsws/robotnik/.nvmrc' with version <iojs-v1.8.1>
######################################################################## 100.0%
WARNING: checksums are currently disabled for io.js
Now using io.js v1.8.1 (npm v2.8.3)

->then->

sudo npm install

All fine (except few warnings - ignored)

->then->

sudo npm start

->then->

Same Issue:

Blank Screen

[12629:0512/210554:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[12657:0512/210555:INFO:renderer_main.cc(200)] Renderer process started

@rsrini7
Copy link
Author

rsrini7 commented Jun 11, 2015

Hi,
Did you get chance to look at ? Can you please help me on this ?

@ajfisher
Copy link
Contributor

Pretty sure this is all now resolved with newer versions of electron and node serial port and the pain we had to go through for the last 6 months. Suggest close out as we have this working on OSX, Win and Ubuntu / Raspbian.

Also this last issue may well be due to the websockets switch off on chrome that has now been resolved upstream again.

Recommend closure of this item.

@rsrini7
Copy link
Author

rsrini7 commented Jun 1, 2016

Works fine in Ubuntu 14.04. But gulp failed in Windows 8 and 10.

gulp

[16:46:35] Using gulpfile D:\robotnik\gulpfile.js
[16:46:35] Starting 'icons'...
[16:46:35] Starting 'blockly'...
[16:46:35] Starting 'bootstrap'...
[16:46:35] Starting 'fonts'...
[16:46:35] Starting 'boards'...
[16:46:35] Starting 'workshops'...
[16:46:35] Starting 'vendor'...
[16:46:35] Starting 'bundle'...
[16:46:35] Finished 'icons' after 81 ms
[16:46:37] Finished 'boards' after 1.97 s

events.js:154
throw er; // Unhandled 'error' event
^
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'

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

No branches or pull requests

3 participants