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
config 🔧 fix: Axios Proxy Usage And Bump mongoose (#6298) 2025-03-11 14:44:54 -04:00
lib
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
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
jsconfig.json
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