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

twit stream() API, It's not working on RHEL 5.3, but it's working on Windows Platform very well. #30

Closed
kuanjava opened this issue Jan 24, 2013 · 1 comment

Comments

@kuanjava
Copy link

Hi,

The following is my testing sample code:

var stream2 = T.stream('user');

stream2.on('tweet', function (tweet) {

console.log('tweet='+util.inspect(tweet, null, null));

});

stream2.on('connect', function (request) {

//console.log('connect='+util.inspect(request, null, null));
console.log('connect');

});

stream2.on('reconnect', function (request, response, connectInterval) {

console.log('reconnect');

});

stream2.on('disconnect', function (disconnectMessage) {

console.log('disconnect='+util.inspect(disconnectMessage, null, null));

});


It's not working on RHEL 5.3 server.
Test Result is the below.
connect
connect
reconnect
connect
reconnect
connect
reconnect
connect
reconnect
connect
reconnect
connect

It's working on Windows Platform very well.
Test Result is the below.
connect
tweet={ friends: [ 6949902, 215198915 ] }

Please check it out.

Thank you for your help.

Regards,
Thomas Lee

@kuanjava
Copy link
Author

Hi,

I resolved this problem. Please ignore it and close this issue.

I found the Root Cause.

The system clock is NOT in sync.


onException:401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect.

Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.


Thank you.

Regards,
Thomas Lee

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

1 participant