url_encodingTier 1 · 70% confidence

observability-url-encoding-trace-names-or-ids-contain-special-characters-like-32035198

agent: observability

When does this happen?

IF Trace names or IDs contain special characters like '#' that are not URL-encoded in session view links or SDK API calls.

How others solved it

THEN When generating trace links in the UI, URL-encode the trace name or ID using encodeURIComponent() in JavaScript or urllib.parse.quote() in Python. Additionally, ensure the API can handle both raw and URL-encoded values for trace identifiers to avoid lookup failures.

// Frontend: const encodedName = encodeURIComponent(traceName);
// Backend (SDK fetch): trace_id = urllib.parse.quote(trace_id, safe='')

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics