ids.alfacom.it/attached_assets/Pasted--5-37-12-PM-express-POST-api-ml-train-200-in-5ms-message-Training-avviato-in-background-1763743249260_1763743249260.txt
marco370 d10b470793 Fix database connection errors and schema issues
Resolve 500 errors across database API endpoints by implementing a dual-mode database driver and adding missing columns to the routers table.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c333ed12-07c5-412a-aff0-524321acc652
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/C4ZJnmQ
2025-11-21 16:41:55 +00:00

62 lines
4.8 KiB
Plaintext

5:37:12 PM [express] POST /api/ml/train 200 in 5ms :: {"message":"Training avviato in background","m…
5:37:12 PM [express] GET /api/training-history 304 in 2ms :: []
5:37:12 PM [express] GET /api/ml/stats 304 in 14ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:37:22 PM [express] GET /api/training-history 304 in 16ms :: []
5:37:22 PM [express] GET /api/ml/stats 304 in 17ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:37:32 PM [express] GET /api/training-history 304 in 12ms :: []
5:37:32 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:37:42 PM [express] GET /api/training-history 304 in 12ms :: []
5:37:42 PM [express] GET /api/ml/stats 304 in 14ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:37:52 PM [express] GET /api/training-history 304 in 12ms :: []
5:37:52 PM [express] GET /api/ml/stats 304 in 14ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:38:02 PM [express] GET /api/training-history 304 in 12ms :: []
5:38:02 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:38:12 PM [express] GET /api/training-history 304 in 10ms :: []
5:38:12 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:38:22 PM [express] GET /api/training-history 304 in 13ms :: []
5:38:22 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:38:32 PM [express] GET /api/training-history 304 in 12ms :: []
5:38:32 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:38:32 PM [express] GET /api/stats 200 in 11ms :: {"routers":{"total":1,"enabled":1},"detections":{…
5:38:33 PM [express] GET /api/detections 304 in 14ms :: []
5:38:33 PM [express] GET /api/routers 200 in 12ms :: [{"id":"aedb9b6e-6d38-4926-8a45-b2f0c7b48c3d","…
5:38:36 PM [express] GET /api/detections 304 in 2ms :: []
5:38:38 PM [express] GET /api/training-history 304 in 3ms :: []
5:38:38 PM [express] GET /api/ml/stats 304 in 18ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:38:42 PM [express] GET /api/detections 304 in 5ms :: []
5:38:42 PM [express] GET /api/routers 304 in 5ms :: [{"id":"aedb9b6e-6d38-4926-8a45-b2f0c7b48c3d","n…
5:38:42 PM [express] GET /api/stats 304 in 12ms :: {"routers":{"total":1,"enabled":1},"detections":{…
5:38:47 PM [express] GET /api/detections 304 in 3ms :: []
5:38:48 PM [express] GET /api/detections 304 in 2ms :: []
5:38:49 PM [express] GET /api/training-history 304 in 3ms :: []
5:38:49 PM [express] GET /api/ml/stats 304 in 19ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:38:59 PM [express] GET /api/training-history 304 in 11ms :: []
5:38:59 PM [express] GET /api/ml/stats 304 in 16ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:39:09 PM [express] GET /api/training-history 304 in 11ms :: []
5:39:09 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:39:19 PM [express] GET /api/training-history 304 in 11ms :: []
5:39:19 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:39:29 PM [express] GET /api/training-history 304 in 11ms :: []
5:39:29 PM [express] GET /api/ml/stats 304 in 14ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:39:39 PM [express] GET /api/training-history 304 in 11ms :: []
5:39:39 PM [express] GET /api/ml/stats 304 in 14ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:39:50 PM [express] GET /api/training-history 200 in 12ms :: []
5:39:50 PM [express] GET /api/ml/stats 200 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:40:00 PM [express] GET /api/training-history 304 in 12ms :: []
5:40:00 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:40:10 PM [express] GET /api/training-history 304 in 13ms :: []
5:40:10 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:40:13 PM [express] POST /api/ml/train 200 in 4ms :: {"message":"Training avviato in background","m…
5:40:13 PM [express] GET /api/training-history 304 in 2ms :: []
5:40:13 PM [express] GET /api/ml/stats 304 in 14ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:40:23 PM [express] GET /api/training-history 304 in 12ms :: []
5:40:23 PM [express] GET /api/ml/stats 304 in 16ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:40:33 PM [express] GET /api/training-history 304 in 11ms :: []
5:40:33 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…
5:40:44 PM [express] GET /api/training-history 304 in 13ms :: []
5:40:44 PM [express] GET /api/ml/stats 304 in 15ms :: {"logs":{"total":0,"last_hour":0},"detections"…