[GH-ISSUE #48] Gitlab connector does not read base_url parameter #30

Open
opened 2026-10-18 21:13:37 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @tkg61 on GitHub (Jun 11, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/48

When using the gitlab connector, the base_url key is ignored and gitlab.com is used instead. Using the GITLAB_URL environment variable is a workaround but we would like to use the base_url

root@oikb-69c9588cfc-m2nr8:/data# cd /app
root@oikb-69c9588cfc-m2nr8:/app# cat .oikb.yaml
sources:
- name: test2
  source: gitlab:owner/code
  base_url: https://gitlab.mybaseurl.com
  kb-id: 91f700d3-597f-4010-8ea3-3d16b6929bbb
  interval: 1m

root@oikb-69c9588cfc-m2nr8:/app# oikb sync

────────────────────────────────────────
Syncing: gitlab:owner/code → 91f700d3-597f-4010-8ea3-3d16b6929bbb
  Failed: Client error '401 Unauthorized' for url 'https://gitlab.com/api/v4/projects/owner%2Fcode'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
Originally created by @tkg61 on GitHub (Jun 11, 2026). Original GitHub issue: https://github.com/open-webui/oikb/issues/48 When using the gitlab connector, the[ base_url key](https://github.com/open-webui/oikb/blob/dcf241da7f4877cd8540d020b6e8478fc10279ef/src/oikb/connectors/gitlab.py#L43) is ignored and gitlab.com is used instead. Using the GITLAB_URL environment variable is a workaround but we would like to use the base_url ``` root@oikb-69c9588cfc-m2nr8:/data# cd /app root@oikb-69c9588cfc-m2nr8:/app# cat .oikb.yaml sources: - name: test2 source: gitlab:owner/code base_url: https://gitlab.mybaseurl.com kb-id: 91f700d3-597f-4010-8ea3-3d16b6929bbb interval: 1m root@oikb-69c9588cfc-m2nr8:/app# oikb sync ──────────────────────────────────────── Syncing: gitlab:owner/code → 91f700d3-597f-4010-8ea3-3d16b6929bbb Failed: Client error '401 Unauthorized' for url 'https://gitlab.com/api/v4/projects/owner%2Fcode' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401 ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/oikb#30
No description provided.