express-cdn icon indicating copy to clipboard operation
express-cdn copied to clipboard

Image optimization not working on nodejitsu

Open Nevtep opened this issue 11 years ago • 4 comments

Nick, I've switched to 0.1.0 with the compiled bins and I started getting some nasty errors on my app. Here is the log:

[04/19 12:01:26 GMT-0300] Unsupported platform: sunos x64
[04/19 12:01:26 GMT-0300] Unsupported platform: sunos x64
[04/19 12:01:26 GMT-0300] info: [object Object]
[04/19 12:01:26 GMT-0300] child_process.js:782
[04/19 12:01:26 GMT-0300]   var r = this._handle.spawn(options);
[04/19 12:01:26 GMT-0300]                        ^
[04/19 12:01:26 GMT-0300] TypeError: Bad argument
[04/19 12:01:26 GMT-0300]     at ChildProcess.spawn (child_process.js:782:24)
[04/19 12:01:26 GMT-0300]     at exports.spawn (child_process.js:618:9)
[04/19 12:01:26 GMT-0300]     at compile (/opt/haibu/apps/realfilling/FarmShares
QA/package/node_modules/express-cdn/lib/main.js:233:23)
[04/19 12:01:26 GMT-0300]     at checkStringIfModified (/opt/haibu/apps/realfill
ing/FarmSharesQA/package/node_modules/express-cdn/lib/main.js:392:91)
[04/19 12:01:26 GMT-0300]     at ClientRequest.onResponse (/opt/haibu/apps/realf
illing/FarmSharesQA/package/node_modules/express-cdn/node_modules/knox/lib/clien
t.js:49:7)
[04/19 12:01:26 GMT-0300]     at ClientRequest.EventEmitter.emit (events.js:96:1
7)
[04/19 12:01:26 GMT-0300]     at HTTPParser.parserOnIncomingClient [as onIncomin
g] (http.js:1582:7)
[04/19 12:01:26 GMT-0300]     at HTTPParser.parserOnHeadersComplete [as onHeader
sComplete] (http.js:111:23)
[04/19 12:01:26 GMT-0300]     at CleartextStream.socketOnData [as ondata] (http.
js:1485:20)
[04/19 12:01:26 GMT-0300]     at CleartextStream.CryptoStream._push (tls.js:544:
27)
[04/19 12:01:26 GMT-0300] info: [object Object]
[04/19 12:01:28 GMT-0300] info: All dependencies loaded, preparing to configure
qa environment.
[04/19 12:01:29 GMT-0300] info: Database connected.
[04/19 12:01:30 GMT-0300] info: FarmShares server listening on port: 80
[04/19 12:01:30 GMT-0300] Unsupported platform: sunos x64
[04/19 12:01:31 GMT-0300] info: [object Object]
[04/19 12:01:31 GMT-0300] child_process.js:782
[04/19 12:01:31 GMT-0300]   var r = this._handle.spawn(options);
[04/19 12:01:31 GMT-0300]                        ^

Nevtep avatar Apr 19 '13 15:04 Nevtep

I've submitted the issue to nodejitsu, de deploy works sometimes and sometimes not.

Close this if you think it's done.

Nevtep avatar Apr 24 '13 13:04 Nevtep

I am having a very similar issue on elastic beanstalk, it there anyway to just disable the image optimization?

justengland avatar Jul 17 '13 22:07 justengland

@justengland this is what I did to disable optimization https://github.com/RealFilling/express-cdn/commit/98796e42ffe05c13bd9061b4a65ffc0b127cd250

Then point express-cdn dependency directly to your fork

This issue is still happening for me =/

Nevtep avatar Jul 17 '13 23:07 Nevtep

some update ? can I close ?

gagalago avatar Jun 20 '16 22:06 gagalago