Open andreasrueedlinger opened 6 months ago
Es treten scheinbar Fälle auf, wo das Session-Token (GUID) schon vergeben ist. In diesem Fall sollte ein Retry gemacht werden.
[2024-02-05T14:00:21.955] [ERROR] orm - query failed: INSERT INTO `liste_sessions`(`token`, `expirationDate`, `longSession`, created`, `user`) VALUES (?, ?, ?, ?, ?) -- PARAMETERS: ["632e0961-0505-419c-8c06-5913315af851","2024-03-06T13:00:21.686Z",1,"2024-02-05T12:01:40.000Z",1224]
[2024-02-05T14:00:21.974] [ERROR] default - { "error": { "message": "ER_DUP_ENTRY: Duplicate entry '632e0961-0505-419c-8c06-5913315af851' for key 'PRIMARY'", "name": "QueryFailedError", "status": 500, "stack": "QueryFailedError: ER_DUP_ENTRY: Duplicate entry '632e0961-0505-419c-8c06-5913315af851' for key 'PRIMARY'\n at Query.<anonymous> (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:125:37)\n at Query.<anonymous> (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/Connection.js:525:10)\n at Query._callback (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/Connection.js:491:16)\n at Sequence.end (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)\n at Query.ErrorPacket (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/protocol/sequences/Query.js:90:8)\n at Protocol._parsePacket (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/protocol/Protocol.js:291:23)\n at Parser._parsePacket (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/protocol/Parser.js:433:10)\n at Parser.write (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/protocol/Parser.js:43:10)\n at Protocol.write (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/protocol/Protocol.js:38:16)\n at Socket.<anonymous> (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/mysql/lib/Connection.js:91:28)" }, "request": { "method": "GET", "url": "/activities/2024-01-29/2024-02-04?user=1224", "headers": { "connection": "close", "host": "[www.t-pak.ch](http://www.t-pak.ch/)", "x-forwarded-proto": "https", "x-forwarded-port": "443", "x-forwarded-for": "194.41.152.187", "x-forwarded-for-anon": "194.41.0.0", "sec-ch-ua": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\"", "accept": "application/json, text/plain, */*", "x-auth-token": "632e0961-0505-419c-8c06-5913315af851", "sec-ch-ua-mobile": "?0", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", "sec-ch-ua-platform": "\"Windows\"", "sec-fetch-site": "same-origin", "sec-fetch-mode": "cors", "sec-fetch-dest": "empty", "referer": ["https://www.t-pak.ch/dashboard"](https://www.t-pak.ch/dashboard), "accept-encoding": "gzip, deflate, br", "accept-language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7", "cache-control": "max-stale=0" }, "trailers": {}, "params": {}, "query": { "user": "1224" }, "body": {}, "httpVersion": "1.1", "ip": "fd75:6272:7370:174::1", "protocol": "http", "secure": false, "xhr": false, "hostname": "[www.t-pak.ch](http://www.t-pak.ch/)", "originalUrl": "/activities/2024-01-29/2024-02-04?user=1224" } }
Es treten scheinbar Fälle auf, wo das Session-Token (GUID) schon vergeben ist. In diesem Fall sollte ein Retry gemacht werden.