Closed (duplicate)
Project:
DrupalChat
Version:
7.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2012 at 15:35 UTC
Updated:
13 Aug 2012 at 16:31 UTC
System:
-Windows 7
-VirtualBox with ubuntu 10.04 (nginx, php5-fpm, node.js)
-Drupal 7.15
-Node.JS v0.8.6
- http://drupal.org/project/nodejs
I was installing clear drupal, nodejs (integration) module and DrupalChat using http://drupal.org/node/1713530
In settings set "using node.js" and configure node.js integration module
My nodejs.config.js:
/**
* This configuration file was built using the 'Node.js server configuration builder'.
* For a more fully commented example see the file nodejs.config.js.example in the root of this module
*/
backendSettings = {
"scheme":"http",
"host":"192.168.0.205",
"port":8081,
"key":"/path/to/key/file",
"cert":"/path/to/cert/file",
"resource":"/socket.io",
"publishUrl":"192.168.0.205/d7sc/dr-node/nodejs/publish",
"serviceKey":"",
"backend":{
"port":80,
"host":"http://vm/d7sc/dr-node",
"messagePath":"/nodejs/message/"},
"clientsCanWriteToChannels":true,
"clientsCanWriteToClients":true,
"extensions":"",
"debug":true,
"transports":["websocket",
"flashsocket",
"htmlfile",
"xhr-polling",
"jsonp-polling"],
"jsMinification":true,
"jsEtag":true,
"logLevel":1};After in ssh console write:
ubuntu@ubuntu-valentin:~/www/d7sc/dr-node/sites/all/modules/nodejs$ node server.js
Started http server.
info - socket.io startedAnd go to my website in browser.
In ssh console:
Authenticating client with key "c3d8cceb3a55037156fcf1a48e9e4e90"
Sending message to backend { authToken: 'c3d8cceb3a55037156fcf1a48e9e4e90',
messageType: 'authenticate',
clientId: 'eSSXHJycBMfbXOamnXjq' } { uri: 'http://http://vm/d7sc/dr-node:80/nodejs/message/',
body: 'messageJson=%7B%22authToken%22%3A%22c3d8cceb3a55037156fcf1a48e9e4e90%22%2C%22messageType%22%3A%22authenticate%22%2C%22clientId%22%3A%22eSSXHJ
ycBMfbXOamnXjq%22%7D&serviceKey=',
headers:
{ 'Content-Length': 173,
'Content-Type': 'application/x-www-form-urlencoded' } }
Authenticating client with key "c3d8cceb3a55037156fcf1a48e9e4e90"
Sending message to backend { authToken: 'c3d8cceb3a55037156fcf1a48e9e4e90',
messageType: 'authenticate',
clientId: '2Er1LU1OTKPxqGr5nXjs' } { uri: 'http://http://vm/d7sc/dr-node:80/nodejs/message/',
body: 'messageJson=%7B%22authToken%22%3A%22c3d8cceb3a55037156fcf1a48e9e4e90%22%2C%22messageType%22%3A%22authenticate%22%2C%22clientId%22%3A%222Er1LU
1OTKPxqGr5nXjs%22%7D&serviceKey=',
headers:
{ 'Content-Length': 173,
'Content-Type': 'application/x-www-form-urlencoded' } }
Error with authenticate client request: { [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
Error with authenticate client request: { [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
Error with authenticate client request: { [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
Error with authenticate client request: { [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
Authenticating client with key "c3d8cceb3a55037156fcf1a48e9e4e90"
Sending message to backend { authToken: 'c3d8cceb3a55037156fcf1a48e9e4e90',
messageType: 'authenticate',
clientId: 'oaZcct2C1SNRxtfOnXjt' } { uri: 'http://http://vm/d7sc/dr-node:80/nodejs/message/',
body: 'messageJson=%7B%22authToken%22%3A%22c3d8cceb3a55037156fcf1a48e9e4e90%22%2C%22messageType%22%3A%22authenticate%22%2C%22clientId%22%3A%22oaZcct
2C1SNRxtfOnXjt%22%7D&serviceKey=',
headers:
{ 'Content-Length': 173,
'Content-Type': 'application/x-www-form-urlencoded' } }
Error with authenticate client request: { [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }I testing chat in 2 PC. With node.js doesn't work, but ajax&long polling works well.
Thanks and sorry for my bad language
Comments
Comment #1
darklrd commentedHi gephaest,
Please see this issue: #1678958: NodeJS: channel problems. Thanks.