Skip to content

500 error on /api/graph/ontology/generate even with tiny TXT and qwen-plus #601

@dkh345-sketch

Description

@dkh345-sketch

Image

Image

Hello,

I have issues with MiroFish that I cloned already but when uploading the pdf or md, it gives 500 error
What I did:

Cloned repo at current main.

Ran npm install, npm run setup:all, npm run dev.

Set .env to use LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1, LLM_MODEL_NAME=qwen-plus.

Uploaded a tiny TXT file (~99 characters) as reality seed and clicked to start ontology generation.

What I expected:

Ontology generation to complete and move to environment setup.

What actually happened:

UI shows “Graph build complete”, then error; system dashboard shows “Request failed with status code 500”.

Backend log shows repeated POST /api/graph/ontology/generate HTTP/1.1" 500 immediately after “文本提取完成,共 99 字符” and “调用 LLM 生成本体定义…”.

Environment:

macOS version, Python version, Node version, LLM provider (DashScope qwen-plus; also tried local Ollama qwen/gemma with same 500).

Screenshots/logs:

Attach the console screenshot (like the one you sent) and copy‑paste a few lines of the traceback / log (but not your API keys).

Metadata

Metadata

Assignees

No one assigned

    Labels

    LLM APIAny questions regarding the LLM API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions