josepholiveira / be-the-hero

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incident retornando undefined

Aspheria opened this issue · comments

Mesmo realizando os procedimentos de npx knex migrate:rollback --all, exclusão do db.sqlite, e npx knex migrate:latest sigo retornando no erro:

@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@
undefined
{}
@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@
(node:4508) UnhandledPromiseRejectionWarning: Error: insert into incidents (description, ong_id, title, value)
values (NULL, NULL, NULL, NULL) - SQLITE_CONSTRAINT: NOT NULL constraint failed: incidents.title
(node:4508) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:4508) [DEP0018] 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.

issue1

issue

issue2
issue3
issue4

Opa @Aspheria !

Poderia tentar excluir sua request do insomnia e criar novamente?

Aparentemente isso é um problema com o insomnia não conseguindo enviar as informações corretamente.

Pra isso é só clicar com o botão direito, e clicar em DELETE duas vezes.

Lembrando que precisa criar do zero, não pode ser duplicando uma nova.

Espero que ajude!

Olá Joseph, obrigada pelo reply!

Muitissímo obrigada, eu havia tentado refazer tudo, menos mexer nas requests do insomnia!

Me ajudou muito, agora eu consigo dar segmento.