LibreChat/api
Odrec 77884c14aa
🐛 fix: Prevent Crash on Duplicate Message ID (#6392)
* fix: prevent crash on duplicate message ID

Added error handling for MongoDB error code 11000 (duplicate key error) in saveMessage function. This prevents the application from crashing when trying to save messages with duplicate IDs, which can happen during aborted requests. Now logs a warning and continues execution safely.

Closes: #5774
Closes: #5776

* fix: address ESLint issues in Message.js

---------

Co-authored-by: odrec <odrec@users.noreply.github.com>
2025-03-19 03:27:58 -04:00
..
app 🔧 fix: Update Token Calculations/Mapping, MCP env Initialization (#6406) 2025-03-18 23:16:45 -04:00
cache 🔼 feat: "Run Code" Button Toggle (#5988) 2025-02-23 14:01:36 -05:00
config 🔧 fix: Axios Proxy Usage And Bump mongoose (#6298) 2025-03-11 14:44:54 -04:00
lib 🔧 fix: MeiliSearch Field Error and Patch Incorrect Import by #6210 (#6245) 2025-03-08 14:37:33 -05:00
models 🐛 fix: Prevent Crash on Duplicate Message ID (#6392) 2025-03-19 03:27:58 -04:00
server 🐞 fix: Agent "Resend" Message Attachments + Source Icon Styling (#6408) 2025-03-19 03:27:20 -04:00
strategies 🔒 feat: Two-Factor Authentication with Backup Codes & QR support (#5685) 2025-02-17 19:09:36 -05:00
test 🔍 feat: Mistral OCR API / Upload Files as Text (#6274) 2025-03-10 17:23:46 -04:00
utils 🔗 feat: Agent Chain (Mixture-of-Agents) (#6374) 2025-03-17 16:43:44 -04:00
jest.config.js fix: Enhance Test Coverage and Fix Compatibility Issues 👷‍♂️ (#1363) 2023-12-15 13:27:13 -05:00
jsconfig.json feat(api): initial Redis support; fix(SearchBar): proper debounce (#1039) 2023-10-11 17:05:47 -04:00
package.json 🚀 feat: S3 Integration for File handling and Image uploads (#6142) 2025-03-19 02:04:45 -04:00
typedefs.js 🔍 feat: Mistral OCR API / Upload Files as Text (#6274) 2025-03-10 17:23:46 -04:00