[BUG] scanner logging #19

Closed
opened 2026-05-11 13:33:55 -05:00 by cowch · 1 comment
Owner

Summary

when a scan command comes over weird it could cause an error

POST /lst/api/mobile/logs 500 53.008 ms - 1146
Error: Failed query: insert into "scan_log" ("id", "user", "scanner_id", "message", "prompt", "command_description", "running_number", "status", "lines", "add_date") values (default, $1, $2, default, default, default, $3, default, default, default) returning "id", "user", "scanner_id",
"message", "prompt", "command_description", "running_number", "status", "lines", "add_date"
params: Big mike,2,711864
at PostgresJsPreparedQuery.queryWithCache (file:///D:/LST_V3/node_modules/drizzle-orm/pg-core/session.js:41:15)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async file:///D:/LST_V3/node_modules/drizzle-orm/postgres-js/session.js:37:20
at async file:///D:/LST_V3/dist/mobile/scanLogs.route.js:8:20


Severity

  • Low
  • Medium
  • High
  • Critical

Environment

Example:

  • Zebra Scanner
  • Mobile Device

# Summary when a scan command comes over weird it could cause an error POST /lst/api/mobile/logs 500 53.008 ms - 1146 Error: Failed query: insert into "scan_log" ("id", "user", "scanner_id", "message", "prompt", "command_description", "running_number", "status", "lines", "add_date") values (default, $1, $2, default, default, default, $3, default, default, default) returning "id", "user", "scanner_id", "message", "prompt", "command_description", "running_number", "status", "lines", "add_date" params: Big mike,2,711864 at PostgresJsPreparedQuery.queryWithCache (file:///D:/LST_V3/node_modules/drizzle-orm/pg-core/session.js:41:15) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async file:///D:/LST_V3/node_modules/drizzle-orm/postgres-js/session.js:37:20 at async file:///D:/LST_V3/dist/mobile/scanLogs.route.js:8:20 --- # Severity - [ ] Low - [ ] Medium - [ ] High - [x] Critical --- # Environment Example: - Zebra Scanner - Mobile Device ---
cowch added the bug label 2026-05-11 13:33:55 -05:00
Author
Owner

also added in a scanner version to better see whats going on when someone scans and has issues

also added in a scanner version to better see whats going on when someone scans and has issues
cowch closed this issue 2026-05-11 19:06:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cowch/lst_v3#19