GithubHelp home page GithubHelp logo

Support proxies about hn-cli HOT 12 CLOSED

rafaelrinaldi avatar rafaelrinaldi commented on June 21, 2024
Support proxies

from hn-cli.

Comments (12)

rafaelrinaldi avatar rafaelrinaldi commented on June 21, 2024

@imjacobclark As mentioned on our Twitter conversation, I've pushed a WIP of this to the feat/support-proxies branch.

Can you help me testing? To do that:

# Clone this repository
$ git clone [email protected]:rafaelrinaldi/hn-cli.git
# Go to the feature branch
$ cd hn-cli && git checkout feat/support-proxies
# Link the binary to your /usr/local
$ npm link

Thanks!

from hn-cli.

imjacobclark avatar imjacobclark commented on June 21, 2024

This still fails for me through my corporate network over SOCKS proxy sadly.

from hn-cli.

rafaelrinaldi avatar rafaelrinaldi commented on June 21, 2024

Can you give me more details? Also, I'm wondering the best way to simulate your env so I can work on a fix.

from hn-cli.

imjacobclark avatar imjacobclark commented on June 21, 2024

It simply hangs whilst trying to load stories, if you're on OSX, you can simulate a SOCKS proxy via an SSH connection: https://www.mikeash.com/ssh_socks.html

from hn-cli.

rafaelrinaldi avatar rafaelrinaldi commented on June 21, 2024

Alright, I will see what I can do. Feel free to submit a PR too πŸ‘

from hn-cli.

erickbelfy avatar erickbelfy commented on June 21, 2024

Hey guys, i would like to take a look on it. Is it working or need more eyes to solve the problem?

from hn-cli.

rafaelrinaldi avatar rafaelrinaldi commented on June 21, 2024

@erickbelfy Thanks for jumping in. Feel free to start working on the feat/support-proxies branch.
I haven't had the time to come back to this since my last comment anyway so your help will come in very handy!

from hn-cli.

rafaelrinaldi avatar rafaelrinaldi commented on June 21, 2024

@erickbelfy Just as an FYI I just published a new release with the --latest feature and also added contribution guidelines. Please, have a look at it when you can πŸ‘

from hn-cli.

erickbelfy avatar erickbelfy commented on June 21, 2024

Sounds good @rafaelrinaldi i will take look as soon as possible, thanks!

from hn-cli.

erickbelfy avatar erickbelfy commented on June 21, 2024

Hi @imjacobclark i've installed a SOCKS proxy locally and it works with my recent push.
Can you help me testing? you have to update the application following the steps bellow:

# Clone this repository
$ git clone [email protected]:rafaelrinaldi/hn-cli.git
# Go to the feature branch
$ cd hn-cli && git checkout feat/support-proxies
# Link the binary to your /usr/local
$ npm link

Let's see what happen now. Thanks!

from hn-cli.

shockwavemoto avatar shockwavemoto commented on June 21, 2024

I believe using got you can pass tunnel in to go through proxies
`
const got = require('got');
const tunnel = require('tunnel');

got(url, {
agent: tunnel.httpOverHttp({
proxy: {
host: 'localhost'
}
})
});`
i've installed a SOCKS proxy locally and it works with my recent push. It simply hangs whilst trying to load stories, if you're on OSX, you can simulate a SOCKS proxy via an SSH connection: https://www.mikeash.com/ssh_socks.html

from hn-cli.

rafaelrinaldi avatar rafaelrinaldi commented on June 21, 2024

Closing this since we haven’t heard back from the original reporter and also were unable to reproduce.

PRs are welcome.

from hn-cli.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.