Comments (4)
hi,
I'm just investigating it for mongoose 3.6.15 and it works well. [Not Reproduced]
Could you show me a fragment of your code doesn't work? [Information Required]
Thanks for your report.
from mongoose-q.
Yea sure - the spread and fail never get called when executing the findById()
this.getList = function (req, resp, params) {
var self = this;
self.authenticateUserQ()
.then(function (_user) {
return [_user, geddy.schemas.MyList.findById(params.list_id).populate("_owner", "name email image_avatar").execQ()]; //This executes but breakpoint in spread and fail never get called
})
.spread(function (_user, _list) {
if (!_list || !_list._owner.equals(_user)) {
throw errors.generate("User does not have a list by that id", 400, errors.DATA_NOT_FOUND);
}
self.respond(_list);
})
.fail(self.handleWithDefault(errors.generate("Could Not Retrieve List", 500, errors.UNKNOWN_ERROR)))
.done();
};
FWIW - today im having trouble installing mongoose 3.6.15 (was able to install yesterday) per issue: Automattic/mongoose#1576 so there may be something wrong in mongoose land.
I'll try to step through each line of code to see where its hanging up. Just thought it may be a easily reproducible problem and therefore easily fixed by you. But obv. its not :)
from mongoose-q.
I'd investigated all changes of mongoose from 3.6.14 to 3.6.15 line by line. but I found no clue, Unfortunately.
(see https://gist.github.com/iolo/6097711 )
and, I wrote another test code similar to your code, but it works.
I'm sorry but I have no more idea to fix this issue.
from mongoose-q.
No need to be sorry - appreciate you spending the time looking into it. Must be something strange in my environment. If/when I find out exactly what it is I'll re-open this if necessary. Closing for now.
from mongoose-q.
Related Issues (16)
- SaveQ does not call middleware HOT 3
- update mongoose-q to npm HOT 1
- model.createQ not working when creating with an array HOT 2
- aggregate workaround is not working HOT 1
- Why is Query.populate not supported? HOT 3
- model.saveQ() example incorrect HOT 16
- Mongoose Q for multiple databases HOT 5
- Using unstable releases of mongoose HOT 1
- calling populateQ() more than once? HOT 6
- node.js version HOT 1
- aggregate function exec not getting hooked in mongoose 4.0.5 HOT 1
- opened too soon
- Aggregate#exec is not wrapped
- BDD style tests with Mocha + Chai HOT 2
- Calling custom statics HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoose-q.