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
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedi need more information.
Comment #3
TangMonk CreditAttribution: TangMonk commentedSeems The `request` of nodejs package can not send request to drupal, I create a test.js file to test
Yes, the err is always return, no res, and no body return to me.
So...
Comment #4
TangMonk CreditAttribution: TangMonk commentedOh ~~~, 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.!!
Comment #5
TangMonk CreditAttribution: TangMonk commented