3meters / proxibase

Patchr web service
1 stars 0 forks source link

AccountKit login using phone number fails #419

Closed Jaymassena closed 8 years ago

Jaymassena commented 8 years ago

On the same phone that I successfully logged in to an existing user account using email (jay@3meters.com), I tried to login using my cell phone number and failed.

==== Req: 34921118, from: ::ffff:174.21.59.25, worker: 1, on: Mon, 06 Jun 2016 16:43:58 GMT post /v1/auth/ak { getEntities: true, links: { shortcuts: true, active: [ { links: true, count: true, schema: 'patch', type: 'like', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'patch', type: 'create', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'patch', type: 'watch', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'message', type: 'create', limit: 0, direction: 'out' } ] }, authorization_code: 'AQC3_so8qtXtD6A_5g7lQ4ApviPCJXS7fTEP9IuYdlv9N8uDQqClIYUXAzaiypJasVShurfE4nPf5nkJxN8xKZzvGfyQ7RdlSwZVm4I31WGrvqjzIeOyiw2fMAh4KCPqvJJ-Il_M-YEQ2s2ZgJwBoWuenX_kTCKgrHfeg6rz6D5x1aJ6fygoJHuJ56iht7Tj3Rh-r7IpMmJPNcLkJPk3uYIoqGzfx_oubu92LXs3PBl2LcP14UGFla371vcleUtyx3mT48C72DKlVpJzUQHNgNx2', install: '22f382a81ae67917' } ==== Res: 34921118, time: 615, statusCode: 500 { error: { message: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', name: 'MongoError', driver: true, code: 11000, index: 0, errmsg: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', getOperation: [Function], toJSON: [Function], toString: [Function], appStack: [ 'MongoError: E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', ' at readableAddChunk (_stream_readable.js:146:16)', ' at Socket.Readable.push (_stream_readable.js:110:10)', ' at TCP.onread (net.js:523:20)' ] } }

Jaymassena commented 8 years ago

Still getting the null dup error:

==== Req: 46970249, from: ::ffff:174.21.59.25, worker: 1, on: Mon, 06 Jun 2016 18:46:54 GMT post /v1/auth/ak { getEntities: true, links: { shortcuts: true, active: [ { links: true, count: true, schema: 'patch', type: 'like', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'patch', type: 'create', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'patch', type: 'watch', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'message', type: 'create', limit: 0, direction: 'out' } ] }, authorization_code: 'AQAU2pDpOqyOP_a0f827m4xFUiiNg8GIJNVmABb9KwiypqZzeqdRrjUYyjEwPolgiaVIf3bN9VJdotzPPI-j8IPRAizWWb5j4fkHfAcgvkT-qB0r2y3dm_VQzBLuCqWdMARr48CwMlMjOFPyBSoqFitpteLVIlC9yHlZ1ezMzcs5MqJ5r6mL3q0oX1OO4YqZIDM_ChRbGzgsmdVxKO_w5hUyogY3Zdk5_UkYQ4bP3BkM0VBBZ5ySh_Nw_3CVLgUkkDfZTknTv21wKbDs1fnMPoN2', install: '22f382a81ae67917' } ==== Res: 46970249, time: 611, statusCode: 500 { error: { message: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', name: 'MongoError', driver: true, code: 11000, index: 0, errmsg: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', getOperation: [Function], toJSON: [Function], toString: [Function], appStack: [ 'MongoError: E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', ' at readableAddChunk (_stream_readable.js:146:16)', ' at Socket.Readable.push (_stream_readable.js:110:10)', ' at TCP.onread (net.js:523:20)' ] } }

georgesnelling commented 8 years ago

I rebuilt the indexes and added a bunch of logging. Try again please. Thanks.

On Mon, Jun 6, 2016 at 11:48 AM, Jay Massena notifications@github.com wrote:

Still getting the null dup error:

==== Req: 46970249, from: ::ffff:174.21.59.25, worker: 1, on: Mon, 06 Jun 2016 18:46:54 GMT

post /v1/auth/ak { getEntities: true, links: { shortcuts: true, active: [ { links: true, count: true, schema: 'patch', type: 'like', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'patch', type: 'create', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'patch', type: 'watch', limit: 0, direction: 'out' }, { links: true, count: true, schema: 'message', type: 'create', limit: 0, direction: 'out' } ] }, authorization_code: 'AQAU2pDpOqyOP_a0f827m4xFUiiNg8GIJNVmABb9KwiypqZzeqdRrjUYyjEwPolgiaVIf3bN9VJdotzPPI-j8IPRAizWWb5j4fkHfAcgvkT-qB0r2y3dm_VQzBLuCqWdMARr48CwMlMjOFPyBSoqFitpteLVIlC9yHlZ1ezMzcs5MqJ5r6mL3q0oX1OO4YqZIDM_ChRbGzgsmdVxKO_w5hUyogY3Zdk5_UkYQ4bP3BkM0VBBZ5ySh_Nw_3CVLgUkkDfZTknTv21wKbDs1fnMPoN2', install: '22f382a81ae67917' } ==== Res: 46970249, time: 611, statusCode: 500 { error: { message: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', name: 'MongoError', driver: true, code: 11000, index: 0, errmsg: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', getOperation: [Function], toJSON: [Function], toString: [Function], appStack: [ 'MongoError: E11000 duplicate key error index: prox.users.$email_1 dup key: { : null }', ' at readableAddChunk (_stream_readable.js:146:16)', ' at Socket.Readable.push (_stream_readable.js:110:10)', ' at TCP.onread (net.js:523:20)' ] } }

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/3meters/proxibase/issues/419#issuecomment-224051409, or mute the thread https://github.com/notifications/unsubscribe/AAYv6Pr89gz3VyrdAa74Wn9MsTuOKvddks5qJGt-gaJpZM4IvGIl .

Jaymassena commented 8 years ago

Successfully logged in a new user using phone number.

From the database:

{ 
    "_id" : "us.160606.81822.288.595821", 
    "name" : "Alter Ego", 
    "namelc" : "alter ego", 
    "schema" : "user", 
    "_owner" : "us.160606.81822.288.595821", 
    "_creator" : "us.160606.81822.288.595821", 
    "_modifier" : "us.160606.81822.288.595821", 
    "createdDate" : 1.465253022288E12, 
    "modifiedDate" : 1.465253056574E12, 
    "modifiedIp" : "::ffff:174.21.59.25", 
    "activityDate" : 1.465253056574E12, 
    "role" : "user", 
    "authSource" : "ak", 
    "phone" : {
        "number" : "2062457278", 
        "countryCode" : "1"
    }, 
    "lastSignedInDate" : 1.465253022432E12, 
    "akid" : "633017920190485"
}
georgesnelling commented 8 years ago

I'm gonna marked this one fixed and treat subsequent issues in future bugs.