Skip to content

401 Unauthorized Error When Fetching KB Embeddings Config on Admin Settings Page #208

@juananpe

Description

@juananpe

Summary

The Knowledge Base settings page fails to load embeddings configuration due to a 401 Unauthorized error, even when the user is authenticated and has access to the org-admin settings page.

Environment

  • URL: https://test.lamb-project.org/org-admin?view=settings
  • Tab: Configuration → Knowledge Base

Steps to Reproduce

  1. Log in to the application with admin credentials
  2. Navigate to org-admin settings (/org-admin?view=settings)
  3. Click on the "Knowledge Base" tab
  4. Observe the browser console

Expected Behavior

The KB embeddings configuration should load successfully, allowing the admin to view and modify Knowledge Base server settings.

Actual Behavior

A 401 Unauthorized error is returned when the frontend attempts to fetch the embeddings config.

Console Error:

GET https://test.lamb-project.org/creator/admin/org-admin/settings/kb/embeddings-config
401 (Unauthorized)

Error fetching KB embeddings config:
{message: 'Request failed with status code 401', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}

Severity

Medium – Blocks configuration of Knowledge Base/RAG functionality for administrators

Image

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