node-tweet-cli
node-tweet-cli copied to clipboard
Unable to authenticate behind proxy
I installed via NPM and on using tweet login
I'm faced with this:
> tweet login
info: Start sending request to https://twitter.com
error: Error while executing command!
I'm using zsh on a Linux system behind an http proxy server with environment variables http_proxy
https_proxy
set.
Are proxies supported at the moment or does it require any particular environment variables to be set?
@routeaccess there could be a trouble with Twitter API itself but not with the module.
I also have this problem with CentOS and proxy.
You should use 'request' which supports better handling of environment vars in common/auth.js
There is a good example using Twitter on their README -> https://github.com/request/request
// OAuth1.0 - 3-legged server side flow (Twitter example)
// step 1
var qs = require('querystring')
, oauth =
{ callback: 'http://mysite.com/callback/'
, consumer_key: CONSUMER_KEY
, consumer_secret: CONSUMER_SECRET
}
, url = 'https://api.twitter.com/oauth/request_token'
;
request.post({url:url, oauth:oauth}, function (e, r, body) {
@aogilvie @nevinvalsaraj any workarounds?
@voronianski I used a different cli twitter client in the end.