Closed Jaymassena closed 8 years ago
Sorry dude...
==== Req: 35914080, from: ::ffff:174.21.59.25, worker: 1, on: Sun, 05 Jun 2016 19:53:27 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: 'AQDynskZAn3u53uzrj36jfDvaGy6ejjyCTq-N4E9tEa6ZhVaLTQ6QDNXrE53PM1u3_u6IvSeyFNtK_BcxDh_Gvoh0o4pYual2gQo8vWb4FtbNJrMdUhz_kqxuqWoMx3TqdRJB0CQ5yUjpjQMSNXE89iNiulNI8loLRgC5VHXqxyCcZGBJ3P39FcV7NmoFAOiyttTzoL0W6pJii7WcF1RapN2ORTC764tA2HTVom-4fKv1RRV6V_6dR5gtq4X6gMnHRqYLF1CzxCKMCTQX3nujso-', install: '22f382a81ae67917' } ==== Res: 35914080, time: 590, statusCode: 500 { error: { message: 'Can\'t canonicalize query: BadValue $or needs an array', name: 'MongoError', '$err': 'Can\'t canonicalize query: BadValue $or needs an array', code: 17287, appStack: [ 'MongoError: Can\'t canonicalize query: BadValue $or needs an array', ' at readableAddChunk (_stream_readable.js:146:16)', ' at Socket.Readable.push (_stream_readable.js:110:10)', ' at TCP.onread (net.js:523:20)' ] } }
I'm blocked until this works because I'm out of email accounts and I can't login to delete any test accounts.
Yay!, I was able to login using an existing account both provisional and non-provisional. I need some work on the response but I'm opening another issue for that.
The test idea you had is up and working. Lots more tests to write and plenty of bugs to sort through, but the basic approach works, so we won't be blind.
-g
On Sun, Jun 5, 2016 at 7:34 PM, Jay Massena notifications@github.com wrote:
Yay!, I was able to login using an existing account both provisional and non-provisional. I need some work on the response but I'm opening another issue for that.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/3meters/proxibase/issues/417#issuecomment-223856948, or mute the thread https://github.com/notifications/unsubscribe/AAYv6ASelKq-zxCZ4DJ-PALtzKtBKl25ks5qI4dOgaJpZM4IuX-B .
I think this works now. Tested version is pushed in 4.1.0. Please open separate bugs for corner cases.
==== Req: 46407613, from: ::ffff:174.21.59.25, worker: 2, on: Sun, 05 Jun 2016 15:06:12 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: 'AQCMGYUwVeMZH03e_ebhH2yvqiIZ8iX_2w3aqN_rBzfUEN4yQ3a83rsS6Ii300-ow-pLYiYXK76KIGqHOJgqRecNKS0FTbWFwrIy-gaaCHVPFo9p249zthT8NK9WvuVsKB8pv2GGFK6L2sdhIr66C6-PnXObJhf7JCsRXpkRM1a_MfYiTyIcELq_urGf_d93JO8VJ-HBrhlMRHTo9WsBxgpQwufZayBpYCjY8dDifGOPetwepSTafaXZ_mRjG35wGyFnVkX0ReFbkuGOOAjyxwDf', install: '22f382a81ae67917' } ==== Res: 46407613, time: 567, statusCode: 500 { error: { message: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : "jay@3meters.com" }', name: 'MongoError', driver: true, code: 11000, index: 0, errmsg: 'E11000 duplicate key error index: prox.users.$email_1 dup key: { : "jay@3meters.com" }', getOperation: [Function], toJSON: [Function], toString: [Function], appStack: [ 'MongoError: E11000 duplicate key error index: prox.users.$email_1 dup key: { : "jay@3meters.com" }', ' at readableAddChunk (_stream_readable.js:146:16)', ' at Socket.Readable.push (_stream_readable.js:110:10)', ' at TCP.onread (net.js:523:20)' ] } }