Wednesday, 12 April 2017

Json data returns undefined eventhough it exists

im trying to use seneca for microservice stuffs. im new and inexperience in this field. i have a problem where my json object received is undefined but it shows in the console.log.

 console.log("company:", body.data.company)
 company = body.data.company

and this is the error result. it shows that it the company clearly contains a value and not a null

company: BST {"notice":"seneca: Action cmd:addMember,role:client failed: company is not defined.","code":"act_execute","err":{"eraro":true,"orig":{}, "code":"act_execute","seneca":true,"package":"seneca","msg":"seneca: Action cmd:addMember,role:client failed: company is not defined. ...



via Billy Sean TJ

No comments:

Post a Comment