Skip to content

"TypeError: fetch failed" when trying to use ollama #401

Open
@temujin9

Description

@temujin9
mycoder -i --githubMode false --provider ollama --model medragondot/Sky-T1-32B-Preview:latest --logLevel verbose 
Detected 3 browsers on the system
Available browsers:
- google-chrome-stable (chromium) at /usr/bin/google-chrome-stable
- google-chrome (chromium) at /usr/bin/google-chrome
- Firefox (firefox) at /usr/bin/firefox

Type your request below or 'help' for usage information. Use Ctrl+C to exit.

> describe this repo

MyCoder v1.6.0 - AI-powered coding assistant
LLM: ollama/medragondot/Sky-T1-32B-Preview:latest

Interactive correction mode enabled. Press Ctrl+M to send a correction to the agent.
An error occurred:
TypeError: fetch failed
TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11360:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at post (file:///usr/local/lib/node_modules/mycoder/node_modules/ollama/dist/browser.mjs:131:20)
    at Ollama.processStreamableRequest (file:///usr/local/lib/node_modules/mycoder/node_modules/ollama/dist/browser.mjs:277:22)
    at OllamaProvider.generateText (file:///usr/local/lib/node_modules/mycoder/node_modules/mycoder-agent/src/core/llm/providers/ollama.ts:102:42)
    at toolAgent (file:///usr/local/lib/node_modules/mycoder/node_modules/mycoder-agent/src/core/toolAgent/toolAgentCore.ts:142:45)
    at executePrompt (file:///usr/local/lib/node_modules/mycoder/src/commands/$default.ts:187:20)
    at Object.handler (file:///usr/local/lib/node_modules/mycoder/src/commands/$default.ts:280:5)
0
[Token Usage Total] Root: input: 0 cache-writes: 0 cache-reads: 0 output: 0 COST: $0.00
Forcing exit after 5000ms timeout
node --version
v18.19.1
ollama list
NAME                                     ID              SIZE     MODIFIED    
medragondot/Sky-T1-32B-Preview:latest    80155ae4b31c    19 GB    2 hours ago    

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingollamaIssues related to Ollama integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions