mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
Fix: catch uncaught OpenAIError handling in server index.js and log info (#1248)
This commit is contained in:
parent
94df631c44
commit
53d0ffcd11
1 changed files with 11 additions and 2 deletions
|
|
@ -101,7 +101,16 @@ process.on('uncaughtException', (err) => {
|
|||
console.error('Meilisearch error, search will be disabled');
|
||||
messageCount++;
|
||||
}
|
||||
} else {
|
||||
process.exit(1);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (err.message.includes('OpenAIError')) {
|
||||
console.error(
|
||||
'\n\nAn Uncaught `OpenAIError` error may be due to your reverse-proxy setup or stream configuration, or a bug in the `openai` node package.',
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
process.exit(1);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue