Help Needed: Persistent Error with Bolt.DIY and Claude 3.5 Sonnet API Integration

Hi everyone,

I’m encountering a recurring issue while working on a massive project using Bolt.DIY. Every time I send a message, I receive the error:

“There was an error processing your request: An error occurred.”

To make it work again, I have to restart everything after every single message, which is frustrating and significantly slowing down progress.

Here are the details:

  • API in Use: I’m utilizing Claude 3.5 Sonnet’s API and have already invested $1,000 into it.
  • Issue: The error occurs consistently after each message, making it impossible to work seamlessly.
  • Error Log Snippet:
    3stripIndent-CtOGPAlk.js:6 ERROR Chat Request failed
    Error: An error occurred.
    index-CM1Vlp5o.js:1026 Token usage: Object
    ...
    API connection failed
    {
      "endpoint": "/api/chat",
      "retryCount": 3,
      "error": {
        "message": "Connection timeout",
        "stack": "Error: Connection timeout\n..."
      }
    }
    
  • System Info:
    • OS: Windows
    • Browser: Edge
    • Screen: 2560x1440
    • Memory: 4GB (108.76 MB used)
    • Cores: 12
    • Device: Desktop
    • Online: Yes

The full logs and stack trace are attached above. I suspect the issue could be a connection timeout or misconfiguration with the API or providers. Is there a known solution or workaround for this? Could the error stem from settings within Bolt.DIY or the API itself?

Any help or suggestions would be greatly appreciated, as I urgently need this resolved to continue my project!

Thank you! :blush:

Welcome @izayapantovich341,

we have this topic more often here at the moment. The problem, I guess here, is also that your project is to big and cant be handled by the LLM/Provider, cause bolt.diy sents always the whole project instead of just needed files or DIFFS. So with a big project, you reach limits quite fast.

You could try to use Gemini 2.0 Flash instead of Claude, which has much bigger context size. If this is also not working, you would need to switch to other tools like Cursor/Windsurf/Aider, to finish your project.

(Did the same for my Task-List-Advanced project)