[GH-ISSUE #4954] [BUG]: TypeError in agent configuration - SystemSettings.brief.agent_sql_connections is undefined #3108

Closed
opened 2026-02-22 18:32:38 -05:00 by yindo · 1 comment
Owner

Originally created by @JRKilroy on GitHub (Feb 1, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4954

Originally assigned to: @angelplusultra on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

Describe the bug

When accessing the Agent Configuration page for a workspace, the page gets stuck on a loading spinner and never loads.

Error in logs

TypeError: Cannot read properties of undefined (reading 'agent_sql_connections')
at /app/server/endpoints/admin.js:446:40

Root Cause

Line 446 in server/endpoints/admin.js references SystemSettings.brief.agent_sql_connections():

agent_sql_connections:                                                                                                                    
  await SystemSettings.brief.agent_sql_connections(),                                                                                     
                                                                                                                                          
However, SystemSettings.brief is never defined. Line 379 in the same file correctly uses SystemSettings.agent_sql_connections() directly: 
                                                                                                                                          
case "agent_sql_connections":                                                                                                             
  data = {                                                                                                                                
    success: true,                                                                                                                        
    data: await SystemSettings.agent_sql_connections(),                                                                                   
  };                                                                                                                    

- AnythingLLM: latest (Docker)                                                                                                            
- Image: mintplexlabs/anythingllm:latest                                                                                                  
- Platform: Unraid 

### Are there known steps to reproduce?

_No response_
Originally created by @JRKilroy on GitHub (Feb 1, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4954 Originally assigned to: @angelplusultra on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? ## Describe the bug When accessing the Agent Configuration page for a workspace, the page gets stuck on a loading spinner and never loads. ## Error in logs TypeError: Cannot read properties of undefined (reading 'agent_sql_connections') at /app/server/endpoints/admin.js:446:40 ## Root Cause Line 446 in `server/endpoints/admin.js` references `SystemSettings.brief.agent_sql_connections()`: ```javascript agent_sql_connections: await SystemSettings.brief.agent_sql_connections(), However, SystemSettings.brief is never defined. Line 379 in the same file correctly uses SystemSettings.agent_sql_connections() directly: case "agent_sql_connections": data = { success: true, data: await SystemSettings.agent_sql_connections(), }; - AnythingLLM: latest (Docker) - Image: mintplexlabs/anythingllm:latest - Platform: Unraid ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:32:38 -05:00
yindo closed this issue 2026-02-22 18:32:38 -05:00
Author
Owner

@shatfield4 commented on GitHub (Feb 2, 2026):

Related to #4949

@shatfield4 commented on GitHub (Feb 2, 2026): Related to #4949
yindo changed title from [BUG]: TypeError in agent configuration - SystemSettings.brief.agent_sql_connections is undefined to [GH-ISSUE #4954] [BUG]: TypeError in agent configuration - SystemSettings.brief.agent_sql_connections is undefined 2026-06-05 14:50:20 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3108