The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

313799 (3) [Avatar] Offline
eb is not able to deploy the worker correctly in chapter 16. After getting into the EB console interface, changing the node js version to 4.4, then it becomes green. However, the worker does not process the message in the queue. That is a problem. is node 4.7 node version 8? I do not see node 8 in the eb interface. Any help is appreciated. Thank you very much!

Error found in the nodejs log when both server and worker are green in beanstalk.:

TypeError: Canvas is not a constructor
at Caman.nodeFileReady (/var/app/current/node_modules/caman/dist/caman.full.js:371:21)
at /var/app/current/node_modules/caman/dist/caman.full.js:7:61
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:447:3)
Worker started on port 8081
this.canvas = new Canvas(this.imageWidth(), this.imageHeight());

Is it that Canvas is not compatible?


Michael Wittig (103) [Avatar] Offline

the issue is fixed. One of the libs that we use in the code was broken and has been replaces. Please delete the stack and recreate it.

Let me know if it works for you now.