[PR #2356] [CLOSED] 1417 Fix Socket Timeout crashes app #3963

Closed
opened 2026-02-22 18:34:51 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2356
Author: @Rrojaski
Created: 9/23/2024
Status: Closed

Base: masterHead: 1417-completion-timeout


📝 Commits (3)

  • 7985f38 Refactor handleDefaultStreamResponseV2 function for better error handling
  • b2e7ff0 Merge branch 'master' into 1417-completion-timeout
  • d64eb93 run yarn lint

📊 Changes

1 file changed (+56 additions, -44 deletions)

View changed files

📝 server/utils/helpers/chat/responses.js (+56 -44)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #1417

What is in this change?

Implemented an error handler for handleDefaultStreamResponseV2 to manage socket timeouts effectively. Instead of crashing, the app will now respond with a "Socket timeout" message in the chat window.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2356 **Author:** [@Rrojaski](https://github.com/Rrojaski) **Created:** 9/23/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `1417-completion-timeout` --- ### 📝 Commits (3) - [`7985f38`](https://github.com/Mintplex-Labs/anything-llm/commit/7985f389050ecc1321bb721e84b019a59c2da6bb) Refactor handleDefaultStreamResponseV2 function for better error handling - [`b2e7ff0`](https://github.com/Mintplex-Labs/anything-llm/commit/b2e7ff0e673a0a802e2f8b0c30a4463808df3693) Merge branch 'master' into 1417-completion-timeout - [`d64eb93`](https://github.com/Mintplex-Labs/anything-llm/commit/d64eb938b9e6a7ffbd005e4638e53b8f844c26a8) run yarn lint ### 📊 Changes **1 file changed** (+56 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/helpers/chat/responses.js` (+56 -44) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #1417 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Implemented an error handler for handleDefaultStreamResponseV2 to manage socket timeouts effectively. Instead of crashing, the app will now respond with a "Socket timeout" message in the chat window. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:51 -05:00
yindo closed this issue 2026-02-22 18:34:51 -05:00
yindo changed title from [PR #2356] 1417 Fix Socket Timeout crashes app to [PR #2356] [CLOSED] 1417 Fix Socket Timeout crashes app 2026-06-05 15:16:06 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3963