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

HTTPS proxy problem on Windows #7

Closed
tobyweston opened this issue Mar 26, 2014 · 4 comments
Closed

HTTPS proxy problem on Windows #7

tobyweston opened this issue Mar 26, 2014 · 4 comments

Comments

@tobyweston
Copy link

Any suggestions on why I might be getting this error on a Windows box?

C:\font-awesome-svg-png>node font-awesome-svg-png --sizes 16 --color red
Downloading latest icons.yml ...
Downloading latest fontawesome-webfont.svg ...

TypeError: Cannot call method 'toString' of undefined
    at Request._callback (C:\font-awesome-svg-png\font-awesome-svg-png.js:116:27)
    at self.callback (C:\font-awesome-svg-png\node_modules\request\request.js:122:22)
    at Request.EventEmitter.emit (events.js:95:17)
    at ClientRequest.self.clientErrorHandler (C:\font-awesome-svg-png\node_modules\reques
t\request.js:231:10)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at CleartextStream.socketErrorListener (http.js:1547:9)
    at CleartextStream.EventEmitter.emit (events.js:95:17)
    at Socket.onerror (tls.js:1431:17)
    at Socket.EventEmitter.emit (events.js:117:20)
    at net.js:441:14

It's caused by this line

fontData = fontData.toString('utf8');

so fontData is undefined, any suggestions why that might be? I suspected a proxy issue (I need to go through one) but I configured node to use a proxy (I think).

@tobyweston tobyweston changed the title Help! Help! Windows problem (downloading svg) Mar 26, 2014
@Rush
Copy link
Owner

Rush commented Mar 26, 2014

Actually the npm settings are completely separate from Node.JS in general. However I have explicitly added npm get https-proxy inside font-awesome-svg-png and I am trying to use it as a proxy. I was unable to test it properly so please get the latest version and let me know if it works, thanks!

@tobyweston
Copy link
Author

Thanks for looking. I get the following now...

Downloading latest icons.yml ...

Error: connect ETIMEDOUT
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)

@Rush
Copy link
Owner

Rush commented Mar 26, 2014

Sounds a bit fishy to do https requests over http proxy .. are you sure https works in other circumstances?

@tobyweston
Copy link
Author

um... no, I have no clue what's going on now! No worries, I'll try from another (non-proxied) env later

thx

@Rush Rush changed the title Help! Windows problem (downloading svg) HTTPS proxy problem on Windows Mar 26, 2014
@Rush Rush closed this as completed Apr 18, 2014
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

2 participants