Skip to content

API returns 503 Service Unavailable from Vercel deployment #3

@Emlembow

Description

@Emlembow

Problem

When interacting with the deployed API at https://12355-emlembows-projects.vercel.app/api/chat, the server responds with a 503 Service Unavailable error. This happens when sending a message such as {message: 'tell me more'}. The issue is reproducible and appears to be persistent.

Console/Network Logs

POST https://12355-emlembows-projects.vercel.app/api/chat 503 (Service Unavailable)
API response status: 503
Error sending message: Error: Server error: 503
    at R (150.2b18622cf168129d.js:1:3173)
window.console.error @ 684-3359128dfe31cdd5.js:1

Network response:

{
    "error": "Service temporarily unavailable",
    "details": "Failed to build system prompt"
}

Steps to Reproduce

  1. Visit the deployed site.
  2. Attempt to send a message via the chat interface.
  3. Observe the 503 response and error logs in the browser console/network tab.

Expected Behavior

The API should respond with a valid reply rather than a 503 error.

Actual Behavior

A 503 Service Unavailable error is returned from the Vercel deployment, with details indicating a failure to build the system prompt.

Additional Context

  • Error message: Failed to build system prompt
  • Environment: Vercel deployment

Please investigate the backend and Vercel configuration for possible causes (e.g., cold starts, misconfiguration, resource limits, or code errors causing system prompt build failures).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions