-
Notifications
You must be signed in to change notification settings - Fork 566
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
Proxy support #7
Comments
can you show me some code so I can get a better idea of what you're trying to do? |
Hi! I'm really just running your example stream code. This works when I'm at home (no proxies), but when I'm at the office I'm forced to use http/https proxies. So, the stream just seems to sit there, no tweets (I'm not actually tracking "mango") coming out. No errors either. Any ideas where to look? Obviously I'm not 100% sure it's the lack of proxies, but I'm guessing so. var Twit = require('twit'); |
This is not yet ported to the oauth module, due to missing unit-tests and other stuff: I guess, when that is resolved one way or the other, it will make to twit then. :-) |
This still does not work a simple example like that behind a proxy returns Error: connect ECONNREFUSED twit does not work behind a proxy? |
Is there any solution to this issue? |
Would it work for your use cases if I provided the |
request module following environment variables.
|
You can use proxychains instead. |
Hello all - I've have run into the similar issue of not being able to run simple code at my work due to a corporate proxy. I have searched long and far for a solution but as a 'beginner' I am confused on how to implement any of the proposed solutions. I.E. using request package, oauth, etc. If this was my code, where would i enter the proxy information and in what manner? Is it a parameter in the config options? Any help is greatly appreciated! `const express = require('express'); var T = new Twit({consumer_key: '', T.get('search/tweets', { q: 'banana since:2019-10-22', tweet_mode: "extended", count: 3 }, function(err, data, response) { |
I help maintain a desktop application called Hydrator that uses twit to "hydrate" tweet ids back into JSON. It's a useful practice in the social media research community. We've run into situations where users in China, who can talk to Twitter just fine in their browser, are unable to use our app because it is not using the system wide proxy set with the I see that proxies have come up here before in multiple issues (this seems to be the first?). Would you consider a PR that had twit use a proxy server if one was set in the environment? |
@edsu did your users consider running Hydrator on a remote VPS or using a VPN? I'm interested in knowing why Chinese users aren't using these solutions, which ensures compatibility with applications without proxy configuration support |
Their exact setup wasn't something that I inquired about too much, since the conversation is all public on GitHub. It was clear that they were able to use their browser but not the Hydrator app, and that |
Hi!
Twit is very cool indeed. However, I seem to have a problem in dev environment and I should use http(s) proxies. This doesn't connect and I think it's because the system proxies are not recognized by node.js. Any chance to add support for proxies (maybe optional params through conf)?
The text was updated successfully, but these errors were encountered: