ysugimoto / aws-lambda-image

Automatic image resize/reduce on AWS Lambda
MIT License
824 stars 219 forks source link

'EPIPE' Error on both JPG and PNG - AWS Lambda Node.js 10.x #183

Closed andreineacsu closed 5 years ago

andreineacsu commented 5 years ago

Hello,

I'm getting an 'EPIPE' Error on both JPGs and PNGs.

2019-07-19T14:15:01.667Z    c70dc709-e386-47b0-a83b-ccf09c481e57    INFO    Parsing S3 event...
2019-07-19T14:15:01.667Z    c70dc709-e386-47b0-a83b-ccf09c481e57    INFO    Downloading: directory/SF_podium_left_1920.png
2019-07-19T14:15:01.738Z    c70dc709-e386-47b0-a83b-ccf09c481e57    INFO    Backing up to: ./original
2019-07-19T14:15:01.739Z    c70dc709-e386-47b0-a83b-ccf09c481e57    INFO    Uploading to: directory/original/SF_podium_left_1920.png (183599 bytes)
2019-07-19T14:15:01.849Z    c70dc709-e386-47b0-a83b-ccf09c481e57    INFO    Reducing to: ./reduced
2019-07-19T14:15:01.854Z    c70dc709-e386-47b0-a83b-ccf09c481e57    ERROR   Uncaught Exception
{
    "errorType": "Error",
    "errorMessage": "write EPIPE",
    "code": "EPIPE",
    "stack": [
        "Error: write EPIPE",
        "    at WriteWrap.afterWrite [as oncomplete] (net.js:779:14)"
    ],
    "errno": "EPIPE",
    "syscall": "write"
}
2019-07-19T14:15:01.856Z    c70dc709-e386-47b0-a83b-ccf09c481e57    INFO    Uploading to: directory/reduced/reduced-SF_podium_left_1920.png (0 bytes)

Thanks, Andrei

andreineacsu commented 5 years ago

My fault, I was running on Node.js 10.x.