Hi all,
I'm afraid I can confirm this problem. This is what I did (no editing of generated stuff except config):
1. upgraded to geddy 0.5.5
2. created a new geddy app
3. created a scaffold (called todoItem) with 3 properties
4. ran the geddy app
With geddy using the memory adapter it all works fine. Listing, viewing, creating, editing, deleting works fine. No errors.
When I changed config in development.js to mongo
"""
/*
, model: {
defaultAdapter: 'memory'
}
*/
, model: {
defaultAdapter: 'mongo'
}
, db: {
mongo: {
dbname: 'anothertodo'
}
}
"""
0. npm installed a fresh mongodb-wrapper
1. listing works
2. creating an item kills the worker
"""
/home/dev/GeddyJS/anothertest/node_modules/mongodb-wrapper/node_modules/mongodb/lib/mongodb/connection/server.js:359
throw err;
^
ReferenceError: model is not defined
"""
but curiously the item is created and can be verified with a geddy restart
3. viewing the edit page for the item works.
4. removing the item works (without errors)
5. editing and saving kills the worker with error:
"""
/usr/lib/node_modules/geddy/node_modules/model/lib/adapters/mongo/index.js:240
if (data instanceof model.ModelBase) {
^
ReferenceError: model is not defined
"""
6. restarting geddy shows that actually, the save works.
I am afraid I don't know geddy well enough to pin-point the problem. Creating and updating items in with mongo kills the worker and the app hangs but apparently, *after* doing the writing to db. Very curious. Did not have this problem before when I was still using 0.5.2 (and possibly older mongodb-wrapper)
Could it be some weird incompatibility with a new mongodb-wrapper? I don't know what version I had before, though.
Sorry for the long post. Thanks for your time.