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

...but does it work behind HTTP proxy? #9

Closed
lwiechec opened this issue Feb 28, 2017 · 11 comments
Closed

...but does it work behind HTTP proxy? #9

lwiechec opened this issue Feb 28, 2017 · 11 comments
Assignees
Labels
Platform: Linux 🐧 Linux related problems ❓ FAQ Frequently Asked Question

Comments

@lwiechec
Copy link

Basic informations

  • splash-cli version: 2.3.3
  • NodeJs version: 6.9.5
  • Your OS: Ubuntu

ISSUE

I am behind HTTP proxy and splash-cli says that there is no internet connection. I do have http_proxy and https_proxy env, variables set...

@rawnly rawnly self-assigned this Feb 28, 2017
@rawnly rawnly added the 👷‍♂️ Work In Progress I'm working on it label Feb 28, 2017
@rawnly
Copy link
Owner

rawnly commented Feb 28, 2017

I'll work on it 👍

@lwiechec
Copy link
Author

lwiechec commented Feb 28, 2017 via email

@rawnly
Copy link
Owner

rawnly commented Feb 28, 2017

I think is a got issue... See sindresorhus/got#7 or sindresorhus/got#79 . I'll try with other module, maybe i can add a config for proxed users 👍

@rawnly
Copy link
Owner

rawnly commented Feb 28, 2017

Ok maybe now it's works fine. I'm sorry but i need your (@lwiechec) help, because right now i can't test it behind a proxy.

Clone the proxy branch and run npm install (or yarn), then set --proxed on true, and start cli.js.

     $ git clone -b proxy https://github.com/Rawnly/splash-cli.git && cd splash-cli
     $ npm install # or yarn
     $ node cli.js --proxed true
     $ node cli.js

Thanks for your patience.

@rawnly rawnly mentioned this issue Feb 28, 2017
3 tasks
@lwiechec
Copy link
Author

@rawnly :) no problem:

I have run all the steps.
At step number 3 (node cli.js --proxed true) I got back: Proxy: true. At step number 4 (node cli.js) I got back: Splash Error: getaddrinfo ENOTFOUND api.unsplash.com api.unsplash.com:443

It comes (as far as I can tell) from the fast that splash-cli tries to resolve api.unsplash.com through default DNS.

As I am behind very restrictive proxy (ie. DNS that I have is internal). After I add api.unsplash.com to /etc/hosts I am getting:

⏚ [luke:~/fun/splash-cli]↥ proxy ± node cli.js
true

but it times out after ~30 secs and in the end I am getting:

Splash Error: connect ECONNREFUSED 151.101.65.7:443

I think it means that in the end it is not going through proxy...

@rawnly
Copy link
Owner

rawnly commented Feb 28, 2017

@lwiechec try to add also unsplash.com to your hosts

@lwiechec
Copy link
Author

I tried that. Even with unsplash.com the behaviour is the same :(

@rawnly
Copy link
Owner

rawnly commented Mar 1, 2017

@lwiechec keep wait, i'm working on a solution (i hope)!

@lwiechec
Copy link
Author

lwiechec commented Mar 1, 2017 via email

@rawnly rawnly added Question and removed 👷‍♂️ Work In Progress I'm working on it labels Mar 12, 2017
@rawnly
Copy link
Owner

rawnly commented Mar 12, 2017

If someone have any ideas on how to fix that, feel free to create a new PR or contact me

@rawnly
Copy link
Owner

rawnly commented Apr 9, 2017

Hey i've got an idea, when splash download the photos, the download link is not unsplash.com or api.unsplash.com but images.unsplash.com who is hosted by ImgIX.

I hope this can be helpful @lwiechec

@rawnly rawnly closed this as completed Feb 26, 2018
@rawnly rawnly added ❓ FAQ Frequently Asked Question Platform: Linux 🐧 Linux related problems and removed Help Wanted Question labels Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Linux 🐧 Linux related problems ❓ FAQ Frequently Asked Question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants