seejohnrun/haste-server — Issue #20: FileDocumentStore has no method md5
Author: hardikr
Created: 2012-01-24 04:52:04+00:00
State: open

OK, I have tried all 3 ways of getting Haste up and running - files, redis and memcached! All three of them give some error. Here is the one for file :

info: compressed application.js into application.min.js
info: listening on localhost:7777

/home/ubuntu/code/node/haste-server/lib/document_stores/file.js:28
var fn = _this.basePath + '/' + _this.md5(key);
^
TypeError: Object [object Object] has no method 'md5'
at Object.oncomplete (/home/ubuntu/code/node/haste-server/lib/document_stores/file.js:28:45)

It is strange because file.js has an md5 method explicitly defined for the object FileDocumentStore.