{"action":"created","issue":{"url":"https://api.github.com/repos/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/9","repository_url":"https://api.github.com/repos/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania","labels_url":"https://api.github.com/repos/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/9/comments","events_url":"https://api.github.com/repos/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/9/events","html_url":"https://github.com/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/9","id":191279047,"number":9,"title":"No termina de desplegar en heroku","user":{"login":"DanielRamosAcosta","id":11427028,"avatar_url":"https://avatars.githubusercontent.com/u/11427028?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRamosAcosta","html_url":"https://github.com/DanielRamosAcosta","followers_url":"https://api.github.com/users/DanielRamosAcosta/followers","following_url":"https://api.github.com/users/DanielRamosAcosta/following{/other_user}","gists_url":"https://api.github.com/users/DanielRamosAcosta/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRamosAcosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRamosAcosta/subscriptions","organizations_url":"https://api.github.com/users/DanielRamosAcosta/orgs","repos_url":"https://api.github.com/users/DanielRamosAcosta/repos","events_url":"https://api.github.com/users/DanielRamosAcosta/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRamosAcosta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-23T14:06:08Z","updated_at":"2016-11-23T15:28:05Z","closed_at":null,"body":"# tl;dr\r\n\r\nCuando se ejecuta el comando para desplegar, después de preguntar si necesitamos autenticación, se lanza un error de `UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Expected response to be successful, got 422`, y no crea la aplicación en heroku.\r\n\r\n```\r\nnode -v; npm -v\r\nv7.1.0\r\n3.10.9\r\n```\r\n\r\n# Pasos\r\n\r\n1. `npm i -g gitbook-start-elt`\r\n2. `gitbook-start --dir correccionLucas`\r\n3. `cd correccionLucas`\r\n4. `git add .; git commit -m \"Primer commit\"`\r\n5. `ls -la`\r\n\r\n   Salida:\r\n\r\n   ```\r\n   total 40\r\n   drwxr-xr-x 5 daniel daniel 4096 nov 23 13:56 ./\r\n   drwxrwxr-x 7 daniel daniel 4096 nov 23 13:56 ../\r\n   -rw-r--r-- 1 daniel daniel   88 nov 23 13:56 book.json\r\n   drwxr-xr-x 8 daniel daniel 4096 nov 23 13:57 .git/\r\n   -rw-r--r-- 1 daniel daniel  247 nov 23 13:56 gulpfile.js\r\n   -rw-r--r-- 1 daniel daniel 1701 nov 23 13:56 package.json\r\n   -rw-r--r-- 1 daniel daniel  237 nov 23 13:56 README.md\r\n   drwxr-xr-x 2 daniel daniel 4096 nov 23 13:56 scripts/\r\n   drwxr-xr-x 2 daniel daniel 4096 nov 23 13:56 txt/\r\n   -rw-r--r-- 1 daniel daniel    6 nov 23 13:56 VERSION\r\n   ```\r\n\r\n6. `npm i -g gitbook-start-plugin-heroku-ericlucastania`\r\n7. `gitbook-start -d heroku`\r\n\r\n   Borro **Todas** las aplicaciones de heroku, y saco el token en mi cuenta.\r\n\r\n   Salida:\r\n\r\n   ```\r\n   Introduzca el token para conectarte: d7c6825e-90c8-4983-a381-b90dc8aa1923\r\n   correccionLucas@0.0.1 /home/daniel/Documentos/Repos/Ajenos/correccionLucas\r\n   └─┬ gitbook-start-plugin-heroku-ericlucastania@1.0.95\r\n     ├── async@1.5.2\r\n     ├─┬ body-parser@1.15.2\r\n     │ ├── bytes@2.4.0\r\n     (...)\r\n     └─┬ shelljs@0.7.5\r\n       ├─┬ glob@7.1.1\r\n       │ ├── fs.realpath@1.0.0\r\n       │ ├─┬ inflight@1.0.6\r\n       │ │ └── wrappy@1.0.2\r\n       │ ├─┬ minimatch@3.0.3\r\n       │ │ └─┬ brace-expansion@1.1.6\r\n       │ │   ├── balanced-match@0.4.2\r\n       │ │   └── concat-map@0.0.1\r\n       │ ├── once@1.4.0\r\n       │ └── path-is-absolute@1.0.1\r\n       ├── interpret@1.0.1\r\n       └─┬ rechoir@0.6.2\r\n         └── resolve@1.1.7\r\n\r\n   Introduzca el nombre de la aplicación: correccionLucas\r\n   ¿Quiere solicitar autentificación para que los usuarios puedan acceder a su libro?(s/n): s\r\n   (node:23357) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Expected response to be successful, got 422\r\n   (node:23357) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n   ```"},"comment":{"url":"https://api.github.com/repos/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/comments/262546011","html_url":"https://github.com/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/9#issuecomment-262546011","issue_url":"https://api.github.com/repos/ULL-ESIT-SYTW-1617/gitbook-start-heroku-ericlucastania/issues/9","id":262546011,"user":{"login":"DanielRamosAcosta","id":11427028,"avatar_url":"https://avatars.githubusercontent.com/u/11427028?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRamosAcosta","html_url":"https://github.com/DanielRamosAcosta","followers_url":"https://api.github.com/users/DanielRamosAcosta/followers","following_url":"https://api.github.com/users/DanielRamosAcosta/following{/other_user}","gists_url":"https://api.github.com/users/DanielRamosAcosta/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRamosAcosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRamosAcosta/subscriptions","organizations_url":"https://api.github.com/users/DanielRamosAcosta/orgs","repos_url":"https://api.github.com/users/DanielRamosAcosta/repos","events_url":"https://api.github.com/users/DanielRamosAcosta/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRamosAcosta/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T15:28:05Z","updated_at":"2016-11-23T15:28:05Z","body":"He vuelto a hacerlo teniendo especial cuidado al pegar el token, pero me da exactamente el mismo error, el 422. \r\n\r\nSegún la [API de heroku](https://devcenter.heroku.com/articles/platform-api-reference#client-error-responses) podría ser porque los parámetros que se le están pasando no son válidos. Una posible solución podría ser ver qué parámetros se le están pasando al `heroku-client`, y capturar el error de la promesa con `.catch` para ver qué puede estar pasando."}}
{"actor":{"display_login":"DanielRamosAcosta"}}