Git Product home page Git Product logo

Comments (8)

janmonschke avatar janmonschke commented on June 3, 2024

What version of Backbone are you using?

from backbone-couchdb.

neverender avatar neverender commented on June 3, 2024

I was using v0.3.1 but I just updated to v0.3.3 and there's no change. Also, fyi, the error was originally on line 77. I added a couple lines to backbone-chouchdb.js while trying to figure out the problem.

edit: oops I accidentally closed this issue. Didn't mean to...

from backbone-couchdb.

janmonschke avatar janmonschke commented on June 3, 2024

Could it be that your error is related to this change?
https://github.com/jasondavies/backbone-couchdb/commit/a886e7d5188486e53b35094d72e13ef9f5fd7f30

backbone-couchdb is using the newest HEAD version of backbone.

from backbone-couchdb.

neverender avatar neverender commented on June 3, 2024

Yeah looks like it. No more error with the latest backbone. I'm still not getting any data when doing a fetch on a collection though. Create works. And it shows up in couchdb. But fetch shows 0 models.

My code works without backbone-couchdb and I've taken a look at your example app and I think I've done things right...

from backbone-couchdb.

janmonschke avatar janmonschke commented on June 3, 2024

What does CouchDB return? You can look up the result for each XHR request in the Inspector.

from backbone-couchdb.

neverender avatar neverender commented on June 3, 2024

{"total_rows":7,"offset":7,"rows":[],"update_seq":317}

When I go to the request url in another tab, the offset is 0 and there are 7 objects in the 'rows' array. So it looks like the offset is 7 when I want to it be 0. Is that something I can do or is it a bug?

from backbone-couchdb.

janmonschke avatar janmonschke commented on June 3, 2024

Seems like something is wrong in your couchdb view or the url of the collection.

from backbone-couchdb.

neverender avatar neverender commented on June 3, 2024

Oh hey. You're right. Typo in my view. Thanks a lot, it's working fine now.

from backbone-couchdb.

Related Issues (20)

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.