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

Socket.io error on MacOS #10

Open
thalesfc opened this issue May 24, 2014 · 6 comments
Open

Socket.io error on MacOS #10

thalesfc opened this issue May 24, 2014 · 6 comments

Comments

@thalesfc
Copy link

I have successfully loaded the gfx, and it is running into my localhost. However, when I execute gfx.image(image.lena()) nothing appears and my javascript console starts prompting an error. I have attached a image that shows it.

screen shot 2014-05-23 at 21 52 17

Just complementing, this is the error message I get is:

GET https://localhost:8000/socket.io/1/?t=1400892730784 net::ERR_CONNECTION_REFUSED socket.io.js:1659
Socket.handshakesocket.io.js:1659
Socket.connectsocket.io.js:1699
maybeReconnect

@soumith
Copy link
Contributor

soumith commented May 24, 2014

Could you give us more information about your machine. What OS? What version of nodejs do you have installed? Any other info that you deem useful.

@thalesfc
Copy link
Author

Ok @soumith, sorry for waiting so long to answer. Here are some information about my machine.

Mac OS X version 10.9.3
Node v0.10.18

-> % luarocks list

Installed rocks:

cwrap
scm-1 (installed) - /usr/local/lib/luarocks/rocks
dok
scm-1 (installed) - /usr/local/lib/luarocks/rocks
gfx.js
scm-0 (installed) - /usr/local/lib/luarocks/rocks
gnuplot
scm-1 (installed) - /usr/local/lib/luarocks/rocks
graphicsmagick
1.scm-0 (installed) - /usr/local/lib/luarocks/rocks
image
1.1.alpha-0 (installed) - /usr/local/lib/luarocks/rocks
linenoise
0.4-1 (installed) - /usr/local/lib/luarocks/rocks
lua-cjson
2.1.0-1 (installed) - /usr/local/lib/luarocks/rocks
luafilesystem
1.6.2-2 (installed) - /usr/local/lib/luarocks/rocks
nn
scm-1 (installed) - /usr/local/lib/luarocks/rocks
optim
1.0.4-0 (installed) - /usr/local/lib/luarocks/rocks
paths
scm-1 (installed) - /usr/local/lib/luarocks/rocks
penlight
1.3.1-1 (installed) - /usr/local/lib/luarocks/rocks
qtlua
scm-1 (installed) - /usr/local/lib/luarocks/rocks
qttorch
scm-1 (installed) - /usr/local/lib/luarocks/rocks
sundown
scm-1 (installed) - /usr/local/lib/luarocks/rocks
sys
1.1-0 (installed) - /usr/local/lib/luarocks/rocks
torch
scm-1 (installed) - /usr/local/lib/luarocks/rocks
trepl
scm-1 (installed) - /usr/local/lib/luarocks/rocks
xlua
1.0-0 (installed) - /usr/local/lib/luarocks/rocks

I have tested it on Chrome and Firefox, both are having the same issue. Thanks.

@soumith
Copy link
Contributor

soumith commented May 26, 2014

i dont know, i have the same setup, and I see no issues. 10.9.3 and v0.10.28

@thalesfc
Copy link
Author

@soumith, whats the version of your socket.io? Mine is:

require('socket.io')
{ version: '0.9.16',
protocol: 1,
clientVersion: '0.9.16',
listen: [Function],
Manager:
{ [Function: Manager]
defaultTransports:
[ 'websocket',
'htmlfile',
'xhr-polling',
'jsonp-polling' ] },
Transport: [Function: Transport],
Socket: [Function: Socket],
Static: [Function: Static],
Store: { [Function: Store] Client: [Function] },
MemoryStore: { [Function: Memory] Client: [Function: Client] },
RedisStore: { [Function: Redis] Client: [Function: Client] },
parser:
{ packets:
{ disconnect: 0,
connect: 1,
heartbeat: 2,
message: 3,
json: 4,
event: 5,
ack: 6,
error: 7,
noop: 8 },
reasons:
{ 'transport not supported': 0,
'client not handshaken': 1,
unauthorized: 2 },
advice: { reconnect: 0 },
encodePacket: [Function],
encodePayload: [Function],
decodePacket: [Function],
decodePayload: [Function] } }

@thalesfc
Copy link
Author

When I import socket.io inside node, the following line appears:
'client not handshaken': 1
whereas the error I receive is:
Socket.handshakesocket.io.js:1659
are these things related?

@soumith
Copy link
Contributor

soumith commented May 29, 2014

probably, i dont know, but I dont see an error when I import socket inside node.

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

2 participants