1
resposta

Erro executando postman

Quando executo no postman usando a data, ele me retorna esse erro com status 500.

`

TypeError: argument callback must be a function when provided    at Function.createQuery (C:\Users\italo\Desktop\alura\node_modules\mysql\lib\Connection.js:57:13)    at Connection.query (C:\Users\italo\Desktop\alura\node_modules\mysql\lib\Connection.js:181:26)    at Atendimentos.adiciona (C:\Users\italo\Desktop\alura\models\atendimentos.js:9:17)    at C:\Users\italo\Desktop\alura\controllers\atendimentos.js:9:21    at Layer.handle [as handle_request] (C:\Users\italo\Desktop\alura\node_modules\express\lib\router\layer.js:95:5)    at next (C:\Users\italo\Desktop\alura\node_modules\express\lib\router\route.js:137:13)    at Route.dispatch (C:\Users\italo\Desktop\alura\node_modules\express\lib\router\route.js:112:3)    at Layer.handle [as handle_request] (C:\Users\italo\Desktop\alura\node_modules\express\lib\router\layer.js:95:5)    at C:\Users\italo\Desktop\alura\node_modules\express\lib\router\index.js:281:22    at Function.process_params (C:\Users\italo\Desktop\alura\node_modules\express\lib\router\index.js:341:12)
``
1 resposta

Olá ítalo, tudo bem?

Coloca teu projeto no github e manda o link aqui pra eu poder dar uma olhada. Aproveita e manda print da requisição no postman.

No aguardo.