Skip to content

Having errors with newly created account. #2

@anilkilic

Description

@anilkilic

Hey Sam,

I created an account through steemconnect and when I tried to log-in with it, I get the following error. account: https://steemd.com/@anilkilic

Cannot read property 'about' of undefined
TypeError: Cannot read property 'about' of undefined
    at router.get (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/routes/user.js:16:37)
    at Layer.handle [as handle_request] (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/route.js:137:13)
    at module.exports.isAuthenticated (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/modules/util.js:12:14)
    at Layer.handle [as handle_request] (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/layer.js:95:5)
    at /Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/Users/anilkilic/Documents/javascript/steemconnect-node-js-boilerplate/node_modules/express/lib/router/index.js:335:12)

I'm not sure if it was default or not but I'm pretty sure I didn't touched that account yet. So its steemconnect.json_metadata returns '{}' instead of '' or undefined.
edit: https://steemd.com/tx/17902fcf836d2c35935e97779aff267bb8baaedc
Here it's set to '{}' if the first thing is authenticate the application.

if (req.session.steemconnect.json_metadata == '' || req.session.steemconnect.json_metadata === undefined) {

Thanks for the boilerplate again. It will help me a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions