[Error] An error occurred

Bolt v0.0.5, installed as instructed.
Windows 11 Pro, latest. With latest VCRedist.
Tried it on the following browsers: Google Chrome Canary, Google Cgrome, Edge. (all latests vers)
As in the video tutorial, I tried to run Google AI by inserting the key both in the program and in the file that was renamed according to the instructions.
However, the error occurs again and again.
I also tried connecting Ollama - same result (not sure if I connected it correctly, API key used ‘ollama’ - this point is poorly described anywhere).

Error:

[ERROR]
06.01.2025, 06:12:01
API connection failed
{
  "endpoint": "/api/chat",
  "retryCount": 3,
  "lastAttempt": "2025-01-05T23:12:01.955Z",
  "error": {
    "message": "Connection timeout",
    "stack": "Error: Connection timeout\n    at http://localhost:5173/app/components/settings/event-logs/EventLogsTab.tsx:63:48\n    at commitHookEffectListMount (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:23793:34)\n    at commitPassiveMountOnFiber (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:25034:19)\n    at commitPassiveMountEffects_complete (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:25007:17)\n    at commitPassiveMountEffects_begin (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:24997:15)\n    at commitPassiveMountEffects (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:24987:11)\n    at flushPassiveEffectsImpl (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:26368:11)\n    at flushPassiveEffects (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:26325:22)\n    at commitRootImpl (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:26294:13)\n    at commitRoot (http://localhost:5173/node_modules/.vite/deps/chunk-RMBP4JJR.js?v=4caba29c:26155:13)"
  }
}
[DEBUG]
06.01.2025, 06:12:01
System configuration loaded
{
  "runtime": "Next.js",
  "features": [
    "AI Chat",
    "Event Logging"
  ]
}

I would be grateful for help if possible.

Welcome @GodRich,

can you please post some screenshots of your terminal where you run bolt as well as the browser with bolt + DEV-Tools openend (console).

Also try to do a prompt to Google again first.

these git errors look strange. Didnt you clone the git repo?

I used the first installation option (Direct Installation (Recommended for Beginners)) via npm.
I didn’t clone it.

so you downloaded it from releases?

Yeah, downloaded from the releases. Everything was done according to the instructions on GitHub. Then I did it again using the YouTube video.

which video? mine?

I just try it myself and see if there is maybe a problem with the release file

Yes, the video is from this site. Studied the errors, tried to find a solution.

I also have my firewall disabled. I haven’t tried putting an older version of bolt.diy (0.0.3). I don’t know if that might help.

yeah video is from me :wink:

I just checked the release and it works fine. so the git errors are not a problem.

Are you sure you installed with “PNPM” and not “NPM” ? because I also dont see the optimizations in your screenshot, like this:

So these commands to install and run:

pnpm install
pnpm run dev

if this you did and still not working, check also the node version

node --version
npm --version

image

The first time I installed and first run, I had this optimization text. I have never seen it afterwards.

ok, just delete the node_modules folder please and do an fresh pnpm install && pnpm run dev

Then go to the UI, Google and past your api key in. make sure no space at the end. then try a prompt.

Yes, the optimization showed up. But the result is the same.

ok something is strange.

Please try to request the google api without bolt.

  1. open powershell
  2. adjust the following command (add your api key)
(Invoke-RestMethod -Uri "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=YOUR_API_KEY" `
  -Headers @{ "Content-Type" = "application/json" } `
  -Method Post `
  -Body '{"contents":[{"parts":[{"text":"whats your knowledge cut off?"}]}]}').candidates[0].content.parts[0].text
  1. send it
  2. your response should look like this

ive got the same error from a brand new install completed yesterday, maybe once i do this update today it will be fixed?

image