Skip to content

[Question]: Error after fetching knowledge graph using https api #9108

@cyx96

Description

@cyx96

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

I’ve enabled the knowledge graph on my dataset, as confirmed by the list-datasets endpoint:

{'code': 0,
 'data': [{'avatar': '',
   'chunk_count': 724,
   'chunk_method': 'naive',
   'create_date': 'Thu, 24 Jul 2025 13:09:23 GMT',
   'create_time': 1753333763643,
   'created_by': 'c56b72d2680211f081db024cd4240d23',
   'description': None,
   'document_count': 1,
   'embedding_model': 'mxbai-embed-large:335m@Ollama',
   'id': '5d0d1e44684c11f084f49a9a55bc04ae',
   'language': 'English',
   'name': 'History',
   'pagerank': 0,
   'parser_config': {'auto_keywords': 0,
    'auto_questions': 0,
    'chunk_token_num': 128,
    'delimiter': '\n',
    'graphrag': {'community': True,
     'entity_types': ['organization', 'person', 'geo', 'event', 'category'],
     'method': 'light',
     'resolution': True,
     'use_graphrag': True},
    'html4excel': False,
    'layout_recognize': 'DeepDOC',
    'raptor': {'use_raptor': False}},
   'permission': 'me',
   'similarity_threshold': 0.2,
   'status': '1',
   'tenant_id': 'c56b72d2680211f081db024cd4240d23',
   'token_num': 110208,
   'update_date': 'Wed, 30 Jul 2025 02:17:50 GMT',
   'update_time': 1753813070212,
   'vector_similarity_weight': 0.3}]}

However, when I try to fetch the graph with:

curl -X GET \
  "http://{address}/api/v1/datasets/5d0d1e44684c11f084f49a9a55bc04ae/knowledge_graph" \
  -H "Authorization: Bearer <YOUR_API_KEY>"

I get a 404:

2025-07-30 07:02:54,038 ERROR    20 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Traceback (most recent call last):
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 854, in dispatch_request
    self.raise_routing_exception(req)
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 463, in raise_routing_exception
    raise request.routing_exception  # type: ignore[misc]
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/ctx.py", line 362, in match_request
    result = self.url_adapter.match(return_rule=True)  # type: ignore
  File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/routing/map.py", line 629, in match
    raise NotFound() from None
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

I’ve double-checked the endpoint and spelling, which should be correct. Any idea what might be going wrong or whether I’m missing a configuration step? Thanks in advance for any advice!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions