mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[GH-ISSUE #49] Confluence connector fails with 400 when using space key — v2 API requires numeric space ID #33
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @satjak on GitHub (Jun 12, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/49
Confluence connector fails with 400 when using space key — v2 API requires numeric space ID
Summary
The oikb documentation and README show that a Confluence space should be configured using its key:
This does not work. Confluence Cloud's v2 API rejects the space key with
400 Bad Requestwhen it appears as a path parameter. The only workaround is to manually look up the numeric space ID and use that instead — which contradicts the documented behavior and is not mentioned anywhere in the docs.Description
The Confluence connector passes the space key directly to the
/wiki/api/v2/spaces/{id}/pagesendpoint:Confluence Cloud's v2 API only accepts a numeric space ID in that path parameter — not a space key string like
ENGorTECH. Passing a key returns400 Bad Request.The key format (
confluence:ENG) works fine for the/api/v2/spaces?keys=ENGlookup endpoint, but not for/api/v2/spaces/{id}/pages.Workaround
Look up the numeric ID for your space first:
Then use the numeric
idfrom the response in the source config:Expected Behaviour
confluence:ENGshould work as documented. The connector should resolve the space key to a numeric ID via/api/v2/spaces?keys={key}before fetching pages.Suggested Fix
Add a key→ID resolution step in
ConfluenceConnector.__init__orbuild_manifest:Environment