<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Agent Bricks - MAS 500 Internal error in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139459#M1415</link>
    <description>&lt;P&gt;Thanks Kaushal, I tried recreating it again and its working now.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Nov 2025 04:14:49 GMT</pubDate>
    <dc:creator>shivamrai162</dc:creator>
    <dc:date>2025-11-18T04:14:49Z</dc:date>
    <item>
      <title>Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/138103#M1342</link>
      <description>&lt;P&gt;Hi Databricks Team / Community,&lt;/P&gt;&lt;P&gt;I’m encountering a &lt;STRONG&gt;500 Internal Server&lt;/STRONG&gt; Error when calling an Agent Bricks MAS endpoint in my workspace. The error message is:&lt;/P&gt;&lt;PRE&gt;500 Internal Error. Please try again later. If this issue persists, please contact Databricks support.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have deployed a multi-agent supervisor&amp;nbsp;using Agent Bricks and exposed it as a serving endpoint.&lt;/LI&gt;&lt;LI&gt;I tried with 1~3 agents and all of them give the same error. Testing the agent endpoints separately works fine.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Troubleshooting I’ve Tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Verified workspace permissions; the token/user has access to all referenced models and tools.&lt;/LI&gt;&lt;LI&gt;Checked cluster status; compute resources appear healthy.&lt;/LI&gt;&lt;LI&gt;Re-deployed the endpoint to ensure the latest agent version is active.&lt;/LI&gt;&lt;LI&gt;Tested with smaller payloads.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would appreciate guidance on:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What could cause a 500 Internal Error in Agent Bricks endpoints?&lt;/LI&gt;&lt;LI&gt;How to reliably debug or capture detailed logs for such failures.&lt;/LI&gt;&lt;LI&gt;Any known limitations or workarounds for multi-agent endpoints causing 500 errors.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you in advance for any help or insights!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 12:00:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/138103#M1342</guid>
      <dc:creator>tsukitsune</dc:creator>
      <dc:date>2025-11-07T12:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/138230#M1362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/196960"&gt;@tsukitsune&lt;/a&gt;&amp;nbsp;,&amp;nbsp; thanks for the detailed context—here’s a concise set of causes, diagnostics, and workarounds to get your multi-agent supervisor stable.&lt;/P&gt;
&lt;H3 class="_7uu25p0 qt3gz9c _7pq7t612 heading3 _7uu25p1"&gt;Likely root causes of 500 on a Multi‑Agent Supervisor (MAS)&lt;/H3&gt;
&lt;UL class="qt3gz97 qt3gz92"&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Missing or misconfigured &lt;STRONG&gt;Agent Framework On‑Behalf‑Of (OBO) Authorization&lt;/STRONG&gt;. MAS invokes sub‑agents with the caller’s permissions; OBO must be enabled and the MAS re‑created after toggling it.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Sub‑agent uses a &lt;STRONG&gt;disabled pay‑as‑you‑go (PayGo) model&lt;/STRONG&gt; (e.g., Claude) or a model that’s not allowed in the workspace; MAS logs show PERMISSION_DENIED/Model disabled and bubble up as 500.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;&lt;STRONG&gt;Intermittent infra issues&lt;/STRONG&gt; or a prior MAS bug around parallel tool calls; a fix was shipped—updating the endpoint resolved repeated 500s in multiple workspaces.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;&lt;STRONG&gt;Rate limiting&lt;/STRONG&gt; can surface as 500 in some paths; ensure AI Gateway rate limits aren’t being hit by MAS traffic.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;&lt;STRONG&gt;Serverless compute dependency&lt;/STRONG&gt; missing in the workspace (MAS relies on serverless model serving).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;&lt;STRONG&gt;Payload/response size or execution limits&lt;/STRONG&gt; exceeded during orchestration (e.g., Genie returning large intermediate results). For agents, request payload limit is 4 MB, and responses &amp;gt;1 MB aren’t logged; max execution time per request is 297s.&lt;/P&gt;
&lt;DIV class="_7pq7t614 _7pq7t6cj wrz27r2 wrz27r0"&gt;&lt;SPAN class="xh5urp3 xh5urp1 xh5urp0" aria-label="3 sources"&gt;3 sources&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Using &lt;STRONG&gt;unsupported sub‑agent types&lt;/STRONG&gt;. MAS currently supports Agent Bricks: Knowledge Assistant endpoints (plus Genie, UC functions, and MCP servers). Custom code agents not created via Knowledge Assistant are not supported as “Agent Endpoint” in the MAS UI.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="_7uu25p0 qt3gz9c _7pq7t612 heading3 _7uu25p1"&gt;How to capture detailed logs and debug reliably&lt;/H3&gt;
&lt;UL class="qt3gz97 qt3gz92"&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Pull &lt;STRONG&gt;model server logs&lt;/STRONG&gt; for the served MAS entity via REST; these show runtime errors that lead to 500s:&lt;/P&gt;
&lt;DIV class="go8b9g1 _7pq7t6cj" data-ui-element="code-block-container"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-bash qt3gz9e hljs language-bash _1ymogdh2"&gt;&lt;SPAN class="hljs-comment"&gt;# Served model logs&lt;/SPAN&gt;
curl -H &lt;SPAN class="hljs-string"&gt;"Authorization: Bearer &lt;SPAN class="hljs-variable"&gt;$TOKEN&lt;/SPAN&gt;"&lt;/SPAN&gt; \
  &lt;SPAN class="hljs-string"&gt;"https://&amp;lt;workspace-host&amp;gt;/api/2.0/serving-endpoints/&amp;lt;mas-endpoint&amp;gt;/served-models/&amp;lt;served-model-name&amp;gt;/logs?config_version=1"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P class="qt3gz91 paragraph"&gt;And container &lt;STRONG&gt;build logs&lt;/STRONG&gt;:&lt;/P&gt;
&lt;DIV class="go8b9g1 _7pq7t6cj" data-ui-element="code-block-container"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-bash qt3gz9e hljs language-bash _1ymogdh2"&gt;curl -H &lt;SPAN class="hljs-string"&gt;"Authorization: Bearer &lt;SPAN class="hljs-variable"&gt;$TOKEN&lt;/SPAN&gt;"&lt;/SPAN&gt; \
  &lt;SPAN class="hljs-string"&gt;"https://&amp;lt;workspace-host&amp;gt;/api/2.0/serving-endpoints/&amp;lt;mas-endpoint&amp;gt;/served-models/&amp;lt;served-model-name&amp;gt;/build-logs?config_version=1"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Enable &lt;STRONG&gt;AI Gateway inference tables&lt;/STRONG&gt; on the MAS endpoint; these log request/response payloads and MLflow traces for agents. Note: logging is best‑effort and may not populate for 500s; payloads &amp;gt;1 MiB won’t be logged.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Use &lt;STRONG&gt;MLflow 3 real‑time tracing&lt;/STRONG&gt; for agent observability; MAS and sub‑agents log traces to an experiment and optionally to Delta tables for production monitoring.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Check &lt;STRONG&gt;endpoint health metrics&lt;/STRONG&gt; (latency, error rate, QPS) and service logs in the Serving UI for runtime behavior and failures.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="_7uu25p0 qt3gz9c _7pq7t612 heading3 _7uu25p1"&gt;Known limitations and recommended workarounds&lt;/H3&gt;
&lt;UL class="qt3gz97 qt3gz92"&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;MAS supports up to &lt;STRONG&gt;10 agents/tools&lt;/STRONG&gt;; ensure each end user has explicit access to every sub‑agent (CAN QUERY for KA, Share for Genie, EXECUTE for UC functions, USE CONNECTION for MCP).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;&lt;STRONG&gt;Knowledge Assistant embedding endpoint&lt;/STRONG&gt; (databricks‑gte‑large‑en) must have &lt;STRONG&gt;AI Guardrails and rate limits disabled&lt;/STRONG&gt; for ingestion; confirm this in Gateway settings.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;MAS was not designed to pass large &lt;STRONG&gt;dataframes between Genie spaces&lt;/STRONG&gt;; it routes and consolidates answers. If your Genie agent produces large intermediate data (e.g., 5000×22 rows), down‑sample/summarize in‑agent, or narrow the query so MAS handles smaller responses.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;If OBO was toggled or workspace settings changed, &lt;STRONG&gt;re‑create MAS&lt;/STRONG&gt; so it picks up auth and routing changes; also click &lt;STRONG&gt;Update Agent&lt;/STRONG&gt; (or update the endpoint) to pull recent orchestration fixes that eliminated parallel‑call 500s.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Verify &lt;STRONG&gt;PayGo models&lt;/STRONG&gt; are permitted if a sub‑agent relies on first‑party Claude/OpenAI endpoints; otherwise replace with allowed models or enable PayGo in the workspace.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="_7uu25p0 qt3gz9c _7pq7t612 heading3 _7uu25p1"&gt;Fast checklist to isolate your case&lt;/H3&gt;
&lt;UL class="qt3gz97 qt3gz92"&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Confirm Agent Framework &lt;STRONG&gt;OBO is enabled&lt;/STRONG&gt; and the MAS was &lt;STRONG&gt;re‑created&lt;/STRONG&gt; after enabling it; retest.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Validate all &lt;STRONG&gt;sub‑agents are supported&lt;/STRONG&gt; (KA endpoints, Genie rooms, UC functions, MCP servers) and end user &lt;STRONG&gt;permissions&lt;/STRONG&gt; are set (CAN QUERY/Share/EXECUTE/USE CONNECTION).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;&lt;STRONG&gt;Update the MAS endpoint&lt;/STRONG&gt; (Configure tab → Update Agent) and retest to pick up the fix for parallel tool‑calling 500s.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Review &lt;STRONG&gt;Gateway rate limits&lt;/STRONG&gt; and disable limits temporarily to rule out throttling; then re‑apply with safe headroom.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Keep MAS and sub‑agent &lt;STRONG&gt;request payloads under 4 MB&lt;/STRONG&gt; and design Genie steps to summarize large outputs before returning to MAS.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;Pull &lt;STRONG&gt;served‑model logs&lt;/STRONG&gt; and &lt;STRONG&gt;build logs&lt;/STRONG&gt; via the REST calls above; also enable &lt;STRONG&gt;inference tables&lt;/STRONG&gt; and &lt;STRONG&gt;real‑time MLflow tracing&lt;/STRONG&gt; for deeper RCA.&lt;/P&gt;
&lt;DIV class="_7pq7t614 _7pq7t6cj wrz27r2 wrz27r0"&gt;&lt;SPAN class="xh5urp3 xh5urp1 xh5urp0" aria-label="4 sources"&gt;4 sources&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps you get to a sound resolution.&lt;/P&gt;
&lt;P&gt;Cheers, Louis.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2025 22:00:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/138230#M1362</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-11-08T22:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139166#M1400</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/34815"&gt;@Louis_Frolio&lt;/a&gt;&amp;nbsp;for the detailed response! The first tip on turning on the&amp;nbsp;&lt;STRONG&gt;Agent Framework On‑Behalf‑Of (OBO) Authorization&amp;nbsp;&lt;/STRONG&gt;resolved the issue. Cheers mate!&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 11:56:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139166#M1400</guid>
      <dc:creator>tsukitsune</dc:creator>
      <dc:date>2025-11-15T11:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139193#M1401</link>
      <description>&lt;P&gt;Glad you found a resolution! Cheers, Louis.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 19:35:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139193#M1401</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-11-15T19:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139295#M1407</link>
      <description>&lt;P&gt;Hello, i'm facing the same issue while testing sample queries in the "Test your Agent" box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone plese help me with the process of enabling OBO authorization&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 11:00:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139295#M1407</guid>
      <dc:creator>shivamrai162</dc:creator>
      <dc:date>2025-11-17T11:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139307#M1408</link>
      <description>&lt;P&gt;Update: Enabled OBO authorization but it still doesn't seem to resolve the issue. Also cross checked compute and other requirements.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 11:36:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139307#M1408</guid>
      <dc:creator>shivamrai162</dc:creator>
      <dc:date>2025-11-17T11:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139329#M1411</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/162065"&gt;@shivamrai162&lt;/a&gt;&amp;nbsp;, Did you recreate the agent after enabling the preview?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 12:37:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139329#M1411</guid>
      <dc:creator>KaushalVachhani</dc:creator>
      <dc:date>2025-11-17T12:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139459#M1415</link>
      <description>&lt;P&gt;Thanks Kaushal, I tried recreating it again and its working now.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 04:14:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139459#M1415</guid>
      <dc:creator>shivamrai162</dc:creator>
      <dc:date>2025-11-18T04:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Agent Bricks - MAS 500 Internal error</title>
      <link>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139461#M1416</link>
      <description>&lt;P&gt;Good to know it's working now &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/162065"&gt;@shivamrai162&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 04:42:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/agent-bricks-mas-500-internal-error/m-p/139461#M1416</guid>
      <dc:creator>KaushalVachhani</dc:creator>
      <dc:date>2025-11-18T04:42:25Z</dc:date>
    </item>
  </channel>
</rss>

