-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
I'm experiencing persistent issues where the chat functionality is not working due to repeated API 503 errors. The browser console logs show errors like:
150.2b18622cf168129d.js:1 Sending message to API: Object
/api/chat:1 Failed to load resource: the server responded with a status of 503 ()
150.2b18622cf168129d.js:1 API response status: 503
684-3359128dfe31cdd5.js:1 Error sending message: Error: Server error: 503
at R (150.2b18622cf168129d.js:1:3173)
window.console.error @ 684-3359128dfe31cdd5.js:1
{error: "Service temporarily unavailable",…}
details: "Failed to build system prompt: Failed to build system prompt: Failed to load content: Cannot read file content/profile.md: ENOENT: no such file or directory, open 'content/profile.md'"
error: "Service temporarily unavailable"
It appears the issue is related to building the system prompt, and specifically the file content/profile.md being missing. Additionally, none of these errors are showing up in the runtime logs.
Request:
- Add logging so that errors related to failed system prompt building (especially missing files and 503 errors) are captured in the runtime logs.
- Investigate and resolve the missing
content/profile.mdfile issue. - Ensure that the API does not repeatedly return a 503 error in this failure scenario, and that the root cause is surfaced in logs for easier troubleshooting.
This is a blocking issue for chat functionality.
Metadata
Metadata
Assignees
Labels
No labels