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

uncaught exception #13

Closed
r569594043 opened this issue Feb 16, 2016 · 3 comments
Closed

uncaught exception #13

r569594043 opened this issue Feb 16, 2016 · 3 comments
Labels

Comments

@r569594043
Copy link

[15:59:03] Using gulpfile E:\Git\template-generator\gulpfile.js
[15:59:04] Starting 'tinypng'...
[15:59:07] gulp-tinypng-compress [compressing] ✔ desc-2.png (done)
[15:59:08] gulp-tinypng-compress [compressing] ✔ desc-1.png (done)
[15:59:09] gulp-tinypng-compress [compressing] ✔ desc-3.png (done)
[15:59:16] gulp-tinypng-compress [compressing] ✔ pic-1.jpg (done)
E:\Git\template-generator\node_modules\gulp-tinypng-compress\index.js:176
                            count: res.headers['compression-count'] || 0
                                      ^

TypeError: Cannot read property 'headers' of undefined
    at Object.<anonymous> (E:\Git\template-generator\node_modules\gulp-tinypng-compress\index.js:176:39)
    at self.callback (E:\Git\template-generator\node_modules\gulp-tinypng-compress\node_modules\request\request.js:368:22)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at Request.onRequestError (E:\Git\template-generator\node_modules\gulp-tinypng-compress\node_modules\request\request.js:1025:8)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at TLSSocket.socketErrorListener (_http_client.js:259:9)
    at emitOne (events.js:77:13)
    at TLSSocket.emit (events.js:169:7)
@stnvh stnvh added the bug label Feb 24, 2016
@stnvh
Copy link
Owner

stnvh commented Feb 24, 2016

I'll add better error handling, thanks for pointing this out.

@daiqing2009
Copy link

This problem is very tedious, please do fix it

@stnvh
Copy link
Owner

stnvh commented Apr 15, 2016

This should be fixed as of 1.2.1

@stnvh stnvh closed this as completed Apr 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants