Giter VIP home page Giter VIP logo

iot.me's Issues

Error on first load

Hey,

Congrats on a great article. It has quite an exhaustive coverage of technologies. Jade isnt my favorite and maybe the error I got was due to a typo or some such. But I am not able to move forward. After following up with your code and typing it up (mostly), and removing basic errors, I am getting the following stack trace in the browser,

TypeError: Cannot read property 'error' of undefined
    at router.get.errorMessage (G:\angular\iot.me\IoT.me\routes\index.js:88:32)
    at Layer.handle [as handle_request]    (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\layer.js:95:5)
    at next (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\route.js:131:13)
    at Route.dispatch (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\route.js:112:3)
    at Layer.handle [as handle_request] (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\layer.js:95:5)
    at G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:277:22
    at Function.process_params (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:330:12)
    at next (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:271:10)
    at Function.handle (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:176:3)
    at router (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:46:12)
    at Layer.handle [as handle_request] (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\layer.js:95:5)
    at trim_prefix (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:312:13)
    at G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:280:7
    at Function.process_params (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:330:12)
    at next (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:271:10)
    at SendStream.error (G:\angular\iot.me\IoT.me\node_modules\express\node_modules\serve-static\index.js:120:7)

I also started the app in debug mode using
set DEBUG=express:* & nodemon bin/www

I get following lines with pink color in my command prompt

 express:view lookup "error.jade" +6ms
 express:view stat "G:\angular\iot.me\IoT.me\views\error.jade" +1ms
 express:view render "G:\angular\iot.me\IoT.me\views\error.jade" +1ms
 GET / 500 124.358 ms - 2293

Typically, I would fire up my webstorm at this point, but am trying to explore other options at debugging this. I must also mention that I am suing Windows 7 in place of Ubuntu as you do, and I have a mongod instance running.

Developing a new project

Your work is great and i'd like it.
I have a suggestion for developing a new platform based on mqtt+expressjs+mongodb and passportjs.
Would you like to contribute in this IoT platform?

TypeError: req.body.hasOwnProperty is not a function

mongod -version
db version v3.0.14

node -v
v7.2.1

The error is both traced and untraced and appears after you try to save or edit dataset fields

TypeError: req.body.hasOwnProperty is not a function
at /home/dan/Documents/IoT.me-master/routes/datasets.js:143:22
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at next (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/route.js:131:13)
at authenticate (/home/dan/Documents/IoT.me-master/utils.js:4:9)
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at next (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at /home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:330:12)
at next (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:271:10)
at Function.handle (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:176:3)
at router (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:46:12)
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:312:13)
at /home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:280:7

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.