meteor - accounts.createUser doesn't work on production server -


i integrated create user using accounts.createuser method meteor 1.3 mongodb 2.6 , working. after updating meteor 1.4 , mongodb 3.2. create user stop working on production server. although tested on local server , running not on production mode.

accounts:createuser({     username: username,     email: email,     lastname: lastname,     type: type,     firstname: firstname,     password: password,     profile:{                registerdate: new date(),             birthdate: birthdate,             gender: gender,             phonenumber: phonenumber,             }     }, function(error)     {       if(error) {                 console.log(error);                 }       if(!error) {                 // send verification link                  } }); 

i tried set accounts.oncreateuser on server side make sure function retern new user. still same error

accounts.oncreateuser(function(option, user){  user.profile = {                   registerdate :  option.profile.registerdate,                  birthdate: option.profile.phonenumber,                  gender: option.profile.phonenumber,                  phonenumber: option.profile.phonenumber,                };  console.log(user);  return user;  }); 

related accounts packages:

accounts-password                  1.3.4 accounts-ui                        1.1.9 

this error getting

error 500

errortype "meteor.error"

message "internal server error [500]"

reason "internal server error"

   "r.makeerrortype/n@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:3:3462    ._livedata_result@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:57:21601    o/o@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:57:6983    ._launchconnection/t.socket.onmessage/<@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:57:606    a.foreach@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:1:863    ._launchconnection/t.socket.onmessage@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:57:562    g</r.prototype.dispatchevent@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:56:1171    g</c.prototype._dispatchmessage@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:56:14765    g</c.prototype._didmessage@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:56:15655    g</c.websocket/o.ws.onmessage@http://www.giggorilla.co.uk/ab20b773d706000be869bec1f69baea22bf74af4.js?meteor_js_resource=true:56:17755 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -