Skip to content

"fetch failed" when launching cobolt for the first time on MacOS (ARM64) if Ollama is not already running #34

Description

@infinitejones

Bug Description

After the initial message advising about downloading Python, Ollama etc, I see a pop-up with a very inscrutable error message. On dismissing the pop-up, the app shuts down.

Steps To Reproduce

  • Download ARM64 dmg
  • Drag cobolt to /Applications folder via shortcut
  • Launch cobolt
  • Error appears after initial setup message

Expected Behavior

Cobolt should launch without problems; or, at the very least, an informative error message should tell me what's wrong.

Actual Behavior

Pop-up with this content:

TypeError: fetch failed
at node:internal/deps/undici/undici:13502:13
at process.response (node:internal/process/task_queues:105:5)
at response (/Applications/Cobolt.app/Contents/Resources/app.asar/dist/main/webpack:/cobolt/release/app/node_modules/ollama/dist/browser.mjs:120:9)
at J.existingModelNames [as list] (/Applications/Cobolt.app/Contents/Resources/app.asar/dist/main/webpack:/cobolt/release/app/node_modules/ollama/dist/browser.mjs:394:11)
at /Applications/Cobolt.app/Contents/Resources/app.asar/dist/main/webpack:/cobolt/src/cobolt-backend/ollama_client.ts:93:9
at memoryEnabled (/Applications/Cobolt.app/Contents/Resources/app.asar/dist/main/webpack:/cobolt/src/cobolt-backend/ollama_client.ts:71:3)
at runFirstTimeSetup (/Applications/Cobolt.app/Contents/Resources/app.asar/dist/main/webpack:/cobolt/src/cobolt-backend/init.ts:12:23)
at async (/Applications/Cobolt.app/Contents/Resources/app.asar/dist/main/webpack:/cobolt/src/main/main.ts:167:9)
at /Applications/Cobolt.app/Contents/Resources/app.asar/dist/main/webpack:/cobolt/src/main/main.ts:684:9

Environment

  • MacOS Sequoia 15.5
  • Cobolt Version: 0.0.3
  • Device: MacBook Air M4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions