Giter Site home page Giter Site logo

bikeshop-cb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bikeshop-cb's Issues

ottoman version right?

npm install complains because of this dependency version:

"ottoman":"git+https://github.com/couchbaselabs/node-ottoman.git#refactor"

In the docs for the app it shows ~1.0.0 as ver?

crash on post from ottoman tutorial

This rest call crashes the app:

curl -X POST http://127.0.0.1:3000/api/bike/ride/create -H "Content-Type: application/json" -d '{"emplEmail":"[email protected]","custEmail":"[email protected]","vin":"duc-2015SUP899AMZ","miles":"35"}' | python -mjson.tool

~/src/couchbaselabs/bikeshop-cb node app.js
/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:213
      throw new Error('Expected ' + f.name + ' type to be a ModelInstance.');
      ^

Error: Expected customer type to be a ModelInstance.
    at _encodeValue (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:213:13)
    at _encodeValue (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:206:21)
    at _encodeValue (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:190:19)
    at Bike.ModelInstance._toCoo (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:279:9)
    at Bike.ModelInstance.toCoo (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:293:15)
    at /Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:432:26
    at Schema.execPostHandlers (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/schema.js:669:5)
    at /Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/schema.js:155:10
    at Schema.execPreHandlers (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/schema.js:643:5)
    at Schema.validate (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/schema.js:142:8)
    at /Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:425:14
    at Schema.execPreHandlers (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/schema.js:643:5)
    at Bike.ModelInstance.save (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/modelinstance.js:419:12)
    at BikeMdl.addRide (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/schema/model/bike.js:70:10)
    at /Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/routes/routes.js:412:45
    at loadArgs (/Users/tyler.mitchell/src/couchbaselabs/bikeshop-cb/node_modules/ottoman/lib/ottoman.js:392:9)

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.