{"level":"info","time":"2026-07-23T17:06:57.525Z","service":"wbapi-whatsapp","sessionId":"1","msg":"restoring saved session"}
{"level":"info","time":"2026-07-23T17:06:57.645Z","service":"wbapi-whatsapp","port":4000,"env":"development","baileys":"7.0.0-rc13","msg":"api.wbapi.in WhatsApp backend listening on :4000"}
{"level":"info","time":"2026-07-23T17:07:00.055Z","service":"wbapi-whatsapp","sessionId":"1","phone":"919611699143","msg":"connected"}
{"level":"info","time":"2026-07-23T17:07:08.231Z","service":"wbapi-whatsapp","req":{"id":2,"method":"POST","url":"/api/v1/sessions/1/messages/image","query":{},"params":{},"headers":{"host":"localhost:4000","user-agent":"curl/8.7.1","accept":"*/*","x-api-key":"[Redacted]","content-type":"application/json","content-length":"2"},"remoteAddress":"::1","remotePort":57972},"res":{"statusCode":501,"headers":{"content-security-policy":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=31536000; includeSubDomains","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0","ratelimit-policy":"20;w=60","ratelimit-limit":"20","ratelimit-remaining":"19","ratelimit-reset":"60","content-type":"application/json; charset=utf-8","content-length":"109","etag":"W/\"6d-W1YMdJYLTC6xePRwRmyp2CVwcUA\""}},"err":{"type":"Error","message":"failed with status code 501","stack":"Error: failed with status code 501\n    at onResFinished (C:\\xampp\\htdocs\\wa_api\\node_modules\\pino-http\\logger.js:115:39)\n    at ServerResponse.onResponseComplete (C:\\xampp\\htdocs\\wa_api\\node_modules\\pino-http\\logger.js:178:14)\n    at ServerResponse.emit (node:events:521:24)\n    at onFinish (node:_http_outgoing:1031:10)\n    at callback (node:internal/streams/writable:764:21)\n    at afterWrite (node:internal/streams/writable:708:5)\n    at afterWriteTick (node:internal/streams/writable:694:10)\n    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)"},"responseTime":1,"msg":"request errored"}
{"level":"info","time":"2026-07-23T17:07:08.452Z","service":"wbapi-whatsapp","req":{"id":3,"method":"POST","url":"/api/v1/sessions/1/messages/text","query":{},"params":{},"headers":{"host":"localhost:4000","user-agent":"curl/8.7.1","accept":"*/*","x-api-key":"[Redacted]","content-type":"application/json","content-length":"38"},"remoteAddress":"::1","remotePort":57973},"res":{"statusCode":400,"headers":{"content-security-policy":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=31536000; includeSubDomains","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0","ratelimit-policy":"20;w=60","ratelimit-limit":"20","ratelimit-remaining":"18","ratelimit-reset":"60","content-type":"application/json; charset=utf-8","content-length":"95","etag":"W/\"5f-XNq8VAnkT595Y7Hg+2f5zFPfSE8\""}},"responseTime":189,"msg":"request completed"}
