I setup my server and i cannot authenticate the user

{ 'Content-Length': 238,
'Content-Type': 'application/x-www-form-urlencoded' } }
Authenticating client with key "edcfa6e9c39d6702617850f304b16f8b"
Sending message to backend { authToken: 'edcfa6e9c39d6702617850f304b16f8b',
messageType: 'authenticate',
clientId: '1lhPr2-mytTzBqQmYKjo' } { uri: 'http://test.com:80/nodejs/message',
body: 'messageJson=%7B%22authToken%22%3A%22edcfa6e9c39d6702617850f304b16f8b%22%2C%22messageType%22%3A%22authenticate%22%2C%22clientId%22%3A%221lhPr2-mytTzBqQmYKjo%22%7D&serviceKey=%40%23sdasu00%2B0026ampflkj%26ltfhsdfue1234343sdfnaf0dffadfj12%23',
headers:
{ 'Content-Length': 238,
'Content-Type': 'application/x-www-form-urlencoded' } }
Error with authenticate client request: { [Error: socket hang up] code: 'ECONNRESET' }
Error with authenticate client request: { [Error: socket hang up] code: 'ECONNRESET' }

Comments

SocialNicheGuru’s picture

Issue summary: View changes
Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)

i need more information.

TangMonk’s picture

Seems The `request` of nodejs package can not send request to drupal, I create a test.js file to test

var request = require('request');
var option = {
    uri: 'http://localhost:8080/nodejs/message',
}

request(option, function (err, res, body) {
    debugger
})

Yes, the err is always return, no res, and no body return to me.

So...

TangMonk’s picture

Oh ~~~, I know why.

When I use drush to enable the `nodejs` module, the menu(route) of `nodejs/message` is still not avaliable, You should clean the cache.

drush cc all

so, everything is fine.!!

TangMonk’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)