Validation failed
See original GitHub issueI’m working with this example code from Josh Morony.
I realise this has been mentioned in an earlier issue before the code was updated, but I cannot seem to get this past this error using the latest code. Any ideas?
OPTIONS /auth/register 204 0.153 ms - 0 (node:91488) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: {"status":404,"name":"not_found","message":"missing","reason":"missing"} { error: 'Validation failed', validationErrors: Error: {"status":404,"name":"not_found","message":"missing","reason":"missing"} at /cloudo/server/node_modules/superlogin/lib/user.js:71:15 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7), status: 400 } POST /auth/register 400 6.461 ms - 64
Response {_body: "{"error":"Validation failed","validationErrors":{},"status":400}", status: 400, ok: false, statusText: "Bad Request", headers: Headers, …} headers : Headers _headers : Map(1) {"content-type" => Array(1)} _normalizedNames : Map(1) {"content-type" => "content-type"} __proto__ : Object ok : false status : 400 statusText : "Bad Request" type : 2 url : "http://localhost:3000/auth/register" _body : "{"error":"Validation failed","validationErrors":{},"status":400}" __proto__ : Body
Node : v9.2.0
npm : 5.5.1
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top GitHub Comments
I’ve been looking for the past couple days as well for a solution to this. I have the exact same issue from tutorial. No idea how to solve this one but I’ll carry on searching for a solution and post something here if I find it.
Original issue: https://github.com/colinskow/superlogin/issues/64