---
# System prepended metadata

title: Ingreso usuarios beta

---

# Ingreso usuarios beta
```
curl -X POST -H "Content-Type: application/json" -H "Authorization:13dh0b67-60a6-42db-b695-al56f00f0db5" -d '{ "type": "collaborators/CREATE_USER", "payload":{ "email":"jhoncc2@gmail.com", "password":"jhYYgf52f24", "companyId":"a88fbd91-abdc-4278-aa05-d7263173ec49", "firstName":"Jhonny", "lastName":"Cerezo", "position":"Desarrollador Fullstack", "area": null, "leaderMail": "ignacio.bolomey@3s.cl" }, "lastUpdate":"9839388", "localActionId": "5dx474d6c-11jd-1c14-b111-bbb2adb1ca48", "appVersion": "0.18.68" }' "localhost:2707/api/handleAction"
```
```
curl -X POST -H "Content-Type: application/json" -H "Authorization:13dh0b67-60a6-42db-b695-al56f00f0db5" -d '{ "type": "collaborators/CREATE_USER", "payload":{ "email":"santiagomanuelrodriguez@gmail.com", "password":"n3ne65Rffe", "companyId":"a88fbd91-abdc-4278-aa05-d7263173ec49", "firstName":"Santiago", "lastName":"Rodriguez", "position":"Desarrollador Fullstack", "area": null, "leaderMail": "ignacio.bolomey@3s.cl" }, "lastUpdate":"9839388", "localActionId": "6dx474d6c-11jd-1c14-b111-bbb2adb1ca48", "appVersion": "0.18.68" }' "localhost:2707/api/handleAction"
```

```
curl -X POST -H "Content-Type: application/json" -H "Authorization:1088f740-902d-4166-a9c4-e842d8cbef26" -d '{"type": "collaborators/DELETE_USER","payload":{"id":"3beea0d0-c9d3-49d5-8c45-71c25195d0e0"},"lastUpdate":"9839388","localActionId": "8d754g4c-81bd-4c10-a266-cbc1aeb1ad42", "appVersion":"0.18.68"}' "localhost:2707/api/handleAction"
```

## Al tratar de eliminar a lucho

```
api_1  | 2020-09-07T01:55:12.724Z info: ::ffff:172.28.0.1 "collaborators/DELETE_USER" "e75c820a-9900-400f-8524-10b0dda35954" - POST /api/handleAction - -
api_1  | 2020-09-07T01:58:30.154Z error: Connection error:write ECONNRESET
api_1  | 2020-09-07T01:58:30.188Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.195Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.232Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.235Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.239Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.247Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.259Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.261Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.263Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.271Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.272Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.275Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.277Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.280Z error: Connection error:Cannot call write after a stream was destroyed
api_1  | 2020-09-07T01:58:30.299Z warn: Connection closed
api_1  | 2020-09-07T01:58:30.353Z error: /actionHandler error: ReqlRuntimeError: Connection is closed in:
api_1  | r.table("planification").pluck(["finalPriorities", "id", "initialPriorities", "requestsSent", "userId"]).coerceTo("array")
api_1  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api_1  |     at ReqlRuntimeError.ReqlError [as constructor] (/app/node_modules/rethinkdb/errors.js:23:13)
api_1  |     at new ReqlRuntimeError (/app/node_modules/rethinkdb/errors.js:90:51)
api_1  |     at mkErr (/app/node_modules/rethinkdb/util.js:177:10)
api_1  |     at TcpConnection.<anonymous> (/app/node_modules/rethinkdb/net.js:362:18)
api_1  |     at TcpConnection.cancel (/app/node_modules/rethinkdb/util.js:26:16)
api_1  |     at TcpConnection.cancel (/app/node_modules/rethinkdb/net.js:789:43)
api_1  |     at wrappedCb (/app/node_modules/rethinkdb/net.js:270:17)
api_1  |     at /app/node_modules/rethinkdb/net.js:280:18
api_1  |     at tryCatcher (/app/node_modules/bluebird/js/main/util.js:26:23)
api_1  |     at Promise._resolveFromResolver (/app/node_modules/bluebird/js/main/promise.js:483:31)
api_1  |     at new Promise (/app/node_modules/bluebird/js/main/promise.js:71:37)
api_1  |     at TcpConnection.<anonymous> (/app/node_modules/rethinkdb/net.js:264:33)
api_1  |     at TcpConnection.close (/app/node_modules/rethinkdb/util.js:43:16)
api_1  |     at /app/node_modules/rethinkdb/net.js:782:46
api_1  |     at tryCatcher (/app/node_modules/bluebird/js/main/util.js:26:23)
api_1  |     at Promise._resolveFromResolver (/app/node_modules/bluebird/js/main/promise.js:483:31) {
api_1  |   name: 'ReqlRuntimeError',
api_1  |   msg: 'Connection is closed.',
api_1  |   frames: [ [length]: 0 ],
api_1  |   message: 'Connection is closed in:\n' +
api_1  |     'r.table("planification").pluck(["finalPriorities", "id", "initialPriorities", "requestsSent", "userId"]).coerceTo("array")\n' +
api_1  |     '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^',
api_1  |   [stack]: 'ReqlRuntimeError: Connection is closed in:\n' +
api_1  |     'r.table("planification").pluck(["finalPriorities", "id", "initialPriorities", "requestsSent", "userId"]).coerceTo("array")\n' +
api_1  |     '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n' +
api_1  |     '    at ReqlRuntimeError.ReqlError [as constructor] (/app/node_modules/rethinkdb/errors.js:23:13)\n' +
api_1  |     '    at new ReqlRuntimeError (/app/node_modules/rethinkdb/errors.js:90:51)\n' +
api_1  |     '    at mkErr (/app/node_modules/rethinkdb/util.js:177:10)\n' +
api_1  |     '    at TcpConnection.<anonymous> (/app/node_modules/rethinkdb/net.js:362:18)\n' +
api_1  |     '    at TcpConnection.cancel (/app/node_modules/rethinkdb/util.js:26:16)\n' +
api_1  |     '    at TcpConnection.cancel (/app/node_modules/rethinkdb/net.js:789:43)\n' +
api_1  |     '    at wrappedCb (/app/node_modules/rethinkdb/net.js:270:17)\n' +
api_1  |     '    at /app/node_modules/rethinkdb/net.js:280:18\n' +
api_1  |     '    at tryCatcher (/app/node_modules/bluebird/js/main/util.js:26:23)\n' +
api_1  |     '    at Promise._resolveFromResolver (/app/node_modules/bluebird/js/main/promise.js:483:31)\n' +
api_1  |     '    at new Promise (/app/node_modules/bluebird/js/main/promise.js:71:37)\n' +
api_1  |     '    at TcpConnection.<anonymous> (/app/node_modules/rethinkdb/net.js:264:33)\n' +
api_1  |     '    at TcpConnection.close (/app/node_modules/rethinkdb/util.js:43:16)\n' +
api_1  |     '    at /app/node_modules/rethinkdb/net.js:782:46\n' +
api_1  |     '    at tryCatcher (/app/node_modules/bluebird/js/main/util.js:26:23)\n' +
api_1  |     '    at Promise._resolveFromResolver (/app/node_modules/bluebird/js/main/promise.js:483:31)',
api_1  |   [isOperational]: true
api_1  | }
api_1  | ReqlRuntimeError: Connection is closed in:
api_1  | r.table("token").get("1840956d-3f47-44b5-9349-166edbd76228")
api_1  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api_1  |     at ReqlRuntimeError.ReqlError [as constructor] (/app/node_modules/rethinkdb/errors.js:23:13)
api_1  |     at new ReqlRuntimeError (/app/node_modules/rethinkdb/errors.js:90:51)
api_1  |     at mkErr (/app/node_modules/rethinkdb/util.js:177:10)
api_1  |     at TcpConnection.<anonymous> (/app/node_modules/rethinkdb/net.js:362:18)
api_1  |     at TcpConnection.cancel (/app/node_modules/rethinkdb/util.js:26:16)
api_1  |     at TcpConnection.cancel (/app/node_modules/rethinkdb/net.js:789:43)
api_1  |     at wrappedCb (/app/node_modules/rethinkdb/net.js:270:17)
api_1  |     at /app/node_modules/rethinkdb/net.js:280:18
api_1  |     at tryCatcher (/app/node_modules/bluebird/js/main/util.js:26:23)
api_1  |     at Promise._resolveFromResolver (/app/node_modules/bluebird/js/main/promise.js:483:31)
api_1  |     at new Promise (/app/node_modules/bluebird/js/main/promise.js:71:37)
api_1  |     at TcpConnection.<anonymous> (/app/node_modules/rethinkdb/net.js:264:33)
api_1  |     at TcpConnection.close (/app/node_modules/rethinkdb/util.js:43:16)
api_1  |     at /app/node_modules/rethinkdb/net.js:782:46
api_1  |     at tryCatcher (/app/node_modules/bluebird/js/main/util.js:26:23)
api_1  |     at Promise._resolveFromResolver (/app/node_modules/bluebird/js/main/promise.js:483:31)
api_1  | 2020-09-07T01:58:30.463Z error: Could not connect to db:28015.
api_1  | connect ECONNREFUSED 172.28.0.2:28015
api_1  | 2020-09-07T01:58:35.517Z error: Could not connect to db:28015.
api_1  | connect ECONNREFUSED 172.28.0.2:28015
api_1  | 2020-09-07T01:58:40.524Z error: Could not connect to db:28015.
api_1  | connect ECONNREFUSED 172.28.0.2:28015
```