visionmedia/screenshot-app — pull request #13 by ericabiz (2013-12-13 20:32:51+00:00)
Title: Fix for "hmset expected value to be a string" error

Error:
ubuntu@x:~/screenshot-app$ node app
Express server listening on port 3000
screenshot - rasterizing http://twitter.com 1024x600
screenshot - rasterized http://twitter.com
screenshot - saving meta-data

/home/ubuntu/screenshot-app/node_modules/redis/index.js:952
else throw err;
^
Error: hmset expected value to be a string
at RedisClient.hmset
(/home/ubuntu/screenshot-app/node_modules/redis/index.js:950:27)
at Function.
(/home/ubuntu/screenshot-app/routes/data.js:16:6)
at Function.EventEmitter.emit (events.js:117:20)
at /home/ubuntu/screenshot-app/routes/main.js:100:9
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)

Fix: Set Date.now() to be a string.