# users

username: teste
created_at: 2026-07-13T06:02:14.699+00:00
updated_at: 2026-07-13T06:02:14.699+00:00
password:
  2db9a008205ddeb4a46defd5825e17a9:f27fb7e86bba7c4ba82aae809eb06061559d68b12906c2f2bdffb28c90869d33d8d05f8785a45b524983c3f3e0cf90d82ac86501d917df15753b092b3848972e


username: 123
created_at: 2026-07-13T06:05:02.655+00:00
updated_at: 2026-07-13T06:05:02.655+00:00
password:
  031da4d13a844143c29d0f1d2652c954:fab2470b9cce9c89948cc82a8eb79efba8488354c4b731ec4930c6e6437010c1e8170111de890562cb4aa323cb12159a90f94c43ac0fe41aa4a75d5a47fe7c08


# error_events

level: warn
context: auth.login
message: Tentativa de login falhou para "teste"
source: backend
created_at: 2026-07-13T06:04:28.009+00:00
stack:
  Error: Usuário ou senha inválidos
      at Module.login (file:///var/www/vendas_oficina/src/services/auth.js:34:25)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async file:///var/www/vendas_oficina/src/routes/auth.js:24:20

metadata:
  {"error":{"message":"Usuário ou senha inválidos","stack":"Error: Usuário ou senha inválidos\n    at Module.login (file:///var/www/vendas_oficina/src/services/auth.js:34:25)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async file:///var/www/vendas_oficina/src/routes/auth.js:24:20"},"status":401}


level: error
context: auth.api
message: POST /login — falha
source: frontend
created_at: 2026-07-13T06:04:28.201+00:00
metadata:
  {"metadata":{"url":"http://177.153.38.26:5173/","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0"}}


level: error
context: auth.register
message: Falha no registro de "teste"
source: backend
created_at: 2026-07-13T06:04:46.130+00:00
stack:
  Error: Usuário já existe
      at Module.register (file:///var/www/vendas_oficina/src/services/auth.js:21:25)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async file:///var/www/vendas_oficina/src/routes/auth.js:10:18

metadata:
  {"error":{"message":"Usuário já existe","stack":"Error: Usuário já existe\n    at Module.register (file:///var/www/vendas_oficina/src/services/auth.js:21:25)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async file:///var/www/vendas_oficina/src/routes/auth.js:10:18"},"status":409}


level: error
context: auth.api
message: POST /register — falha
source: frontend
created_at: 2026-07-13T06:04:46.327+00:00
metadata:
  {"metadata":{"url":"http://177.153.38.26:5173/register","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0"}}


level: error
context: api
message: GET /api/instances/papa/pairing?number=5551999309404 -> FAIL (1021923ms)
source: frontend
created_at: 2026-07-13T07:00:23.824+00:00
metadata:
  {"metadata":{"url":"http://177.153.38.26:5173/wizard","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0"}}


level: error
context: evolution.api
message: GET /instance/connect/papa?number=5551999309404 → FAIL
source: backend
created_at: 2026-07-13T07:00:24.055+00:00
stack:
  AxiosError: Request failed with status code 404
      at settle (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/adapters/http.js:1237:13)
      at IncomingMessage.emit (node:events:520:35)
      at endReadableNT (node:internal/streams/readable:1729:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

metadata:
  {"error":{"message":"Request failed with status code 404","stack":"AxiosError: Request failed with status code 404\n    at settle (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/settle.js:19:12)\n    at IncomingMessage.handleStreamEnd (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/adapters/http.js:1237:13)\n    at IncomingMessage.emit (node:events:520:35)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)"},"response":{"status":404,"error":"Not Found","response":{"message":["The \"papa\" instance does not exist"]}},"status":404}


level: error
context: evolution.api
message: GET /instance/connect/papa?number=5551999309404 → FAIL
source: backend
created_at: 2026-07-13T07:00:24.055+00:00
stack:
  AxiosError: Request failed with status code 404
      at settle (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/adapters/http.js:1237:13)
      at IncomingMessage.emit (node:events:520:35)
      at endReadableNT (node:internal/streams/readable:1729:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

metadata:
  {"response":{"status":404,"error":"Not Found","response":{"message":["The \"papa\" instance does not exist"]}},"status":404}


level: error
context: instances.pairing
message: Falha ao gerar pairing code para "papa"
source: backend
created_at: 2026-07-13T07:00:24.062+00:00
stack:
  AxiosError: Request failed with status code 404
      at settle (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/adapters/http.js:1237:13)
      at IncomingMessage.emit (node:events:520:35)
      at endReadableNT (node:internal/streams/readable:1729:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
      at Axios.request (file:///var/www/vendas_oficina/node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/Axios.js:46:41)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async file:///var/www/vendas_oficina/src/routes/instances.js:213:22

metadata:
  {"response":{"status":404,"error":"Not Found","response":{"message":["The \"papa\" instance does not exist"]}},"status":404}


level: warn
context: http
message: GET /api/instances/papa/pairing?number=5551999309404 → 404 (46ms)
source: backend
created_at: 2026-07-13T07:00:24.079+00:00
metadata:
  {"method":"GET","path":"/api/instances/papa/pairing?number=5551999309404","status":404,"duration":46,"user":2}


level: error
context: express
message: Erro não tratado na request
source: backend
created_at: 2026-07-13T20:51:03.166+00:00
stack:
  PayloadTooLargeError: request entity too large
      at readStream (/var/www/vendas_oficina/node_modules/.pnpm/raw-body@2.5.3/node_modules/raw-body/index.js:163:17)
      at getRawBody (/var/www/vendas_oficina/node_modules/.pnpm/raw-body@2.5.3/node_modules/raw-body/index.js:116:12)
      at read (/var/www/vendas_oficina/node_modules/.pnpm/body-parser@1.20.5/node_modules/body-parser/lib/read.js:79:3)
      at jsonParser (/var/www/vendas_oficina/node_modules/.pnpm/body-parser@1.20.5/node_modules/body-parser/lib/types/json.js:138:5)
      at Layer.handle [as handle_request] (/var/www/vendas_oficina/node_modules/.pnpm/express@4.22.2/node_modules/express/lib/router/layer.js:95:5)
      at trim_prefix (/var/www/vendas_oficina/node_modules/.pnpm/express@4.22.2/node_modules/express/lib/router/index.js:328:13)
      at /var/www/vendas_oficina/node_modules/.pnpm/express@4.22.2/node_modules/express/lib/router/index.js:286:9
      at router.process_params (/var/www/vendas_oficina/node_modules/.pnpm/express@4.22.2/node_modules/express/lib/router/index.js:346:12)
      at next (/var/www/vendas_oficina/node_modules/.pnpm/express@4.22.2/node_modules/express/lib/router/index.js:280:10)
      at expressInit (/var/www/vendas_oficina/node_modules/.pnpm/express@4.22.2/node_modules/express/lib/middleware/init.js:40:5)

metadata:
  {"error":{"message":"request entity too large","stack":"PayloadTooLargeError: request entity too large\n    at readStream (/var/www/vendas_oficina/node_modules/.pnpm/raw-body@2.5.3/node_modules/raw-body/index.js:163:17)\n    at getRawBody (/var/www/vendas_oficina/node_modules/.pnpm/raw-body@2.5.3/node_modules/raw-body/index.js:116:12)\n    at read (/var/www/vendas_oficina/node_modules/.pnpm/body-parser@1.20.5/node_modules/body-parser/lib/read.js:79:3)\n    at jsonParser (/var/www/vendas_oficina/node_modules/.pnpm/body-parser@1.20.5/node_modules/body-parser/lib/types/json.js:138:5)\n    at Layer.handle [as handle_request] (/var/www/vendas_oficina/node_modules/.pnpm/express@4.22.2/node_modules/express/lib/router/layer.js:95:5)"}}


