Code Monkey home page Code Monkey logo

Comments (4)

iolo avatar iolo commented on June 20, 2024

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.

doapp-ryanp avatar doapp-ryanp commented on June 20, 2024

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.

iolo avatar iolo commented on June 20, 2024

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.

doapp-ryanp avatar doapp-ryanp commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.