Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileDocumentStore has no method md5 #20

Closed
soopercorp opened this issue Jan 24, 2012 · 2 comments
Closed

FileDocumentStore has no method md5 #20

soopercorp opened this issue Jan 24, 2012 · 2 comments

Comments

@soopercorp
Copy link

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.

@soopercorp
Copy link
Author

D'oh! Maybe the line of code should be

FileDocumentStore.prototype.md5

@seejohnrun
Copy link
Contributor

Since str gets passed into md5, I think its better to change the two uses to FileDocumentStore.md5. I'm pushing a fix momentarily. Thanks so much for the feedback, and if you have issues with the others please report. I'm using the redis one in production, and an older version of the memcached one on a private install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants