loginUser problem

Hi,

I am experiencing a problem whereby when I login as a user mc:loginUser(myEmail, myPassword, function( event ), it logs me in as a different user. This has only occurred since I upgraded Coronium to a newer version.

Any advice would be greatly appreciated!

Thanks!

Dave

Here is what I get in my error log:

2016/12/29 23:02:49 [error] 1027#0: *3811 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/mongol/bson.lua:159: bad argument #1 to ‘pairs’ (table expected, got nil)

stack traceback:

coroutine 0:

[C]: in function ‘pairs’

/usr/local/openresty/lualib/mongol/bson.lua:159: in function ‘to_bson’

/usr/local/openresty/lualib/mongol/colmt.lua:276: in function ‘query’

/usr/local/openresty/lualib/mongol/colmt.lua:338: in function ‘find_one’

/usr/local/coronium/lib/mod_mongo.lua:127: in function ‘findOne’

/usr/local/coronium/lib/mod_user.lua:61: in function ‘logIn’

/usr/local/coronium/lib/login_api.lua:13: in function </usr/local/coronium/lib/login_api.lua:1>, client: 106.69.195.201, server: _, request: “GET /1/login? HTTP/1.1”, host: “ec2-52-65-155-196.ap-southeast-2.compute.amazonaws.com

2016/12/29 23:02:49 [error] 1027#0: *3813 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/mongol/bson.lua:159: bad argument #1 to ‘pairs’ (table expected, got nil)

So when ever I login as a user, its only grabbing the 1st user from my user list (not the user I am signing in with). Very strange. I would really appreciate some advice.

Thanks!

Anyone?? Im in desperate need of help over this… 

David,

Did reverting the Coronium version on our call resolve this issue? or is it still open?

I had a similar problem and resolved it.

getMe() and oginUser() confusion - PLEASE HELP - Coronium https://forums.coronalabs.com/topic/65034-getme-and-oginuser-confusion-please-help/

Here is what I get in my error log:

2016/12/29 23:02:49 [error] 1027#0: *3811 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/mongol/bson.lua:159: bad argument #1 to ‘pairs’ (table expected, got nil)

stack traceback:

coroutine 0:

[C]: in function ‘pairs’

/usr/local/openresty/lualib/mongol/bson.lua:159: in function ‘to_bson’

/usr/local/openresty/lualib/mongol/colmt.lua:276: in function ‘query’

/usr/local/openresty/lualib/mongol/colmt.lua:338: in function ‘find_one’

/usr/local/coronium/lib/mod_mongo.lua:127: in function ‘findOne’

/usr/local/coronium/lib/mod_user.lua:61: in function ‘logIn’

/usr/local/coronium/lib/login_api.lua:13: in function </usr/local/coronium/lib/login_api.lua:1>, client: 106.69.195.201, server: _, request: “GET /1/login? HTTP/1.1”, host: “ec2-52-65-155-196.ap-southeast-2.compute.amazonaws.com

2016/12/29 23:02:49 [error] 1027#0: *3813 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/mongol/bson.lua:159: bad argument #1 to ‘pairs’ (table expected, got nil)

So when ever I login as a user, its only grabbing the 1st user from my user list (not the user I am signing in with). Very strange. I would really appreciate some advice.

Thanks!

Anyone?? Im in desperate need of help over this… 

David,

Did reverting the Coronium version on our call resolve this issue? or is it still open?

I had a similar problem and resolved it.

getMe() and oginUser() confusion - PLEASE HELP - Coronium https://forums.coronalabs.com/topic/65034-getme-and-oginuser-confusion-please-help/