Skip to content

Fix codec server request URL#3400

Merged
rossedfort merged 3 commits into
mainfrom
fix-codec-server-prefix
May 15, 2026
Merged

Fix codec server request URL#3400
rossedfort merged 3 commits into
mainfrom
fix-codec-server-prefix

Conversation

@rossedfort
Copy link
Copy Markdown
Contributor

Description & motivation 💭

Constructing a new URL() with type and endpoint drops any route prefix the user has configured.

Screenshots (if applicable) 📸

Screenshot 2026-05-15 at 2 23 08 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@rossedfort rossedfort requested a review from a team as a code owner May 15, 2026 20:29
@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment May 15, 2026 8:33pm

Request Review

@temporal-cicd
Copy link
Copy Markdown
Contributor

temporal-cicd Bot commented May 15, 2026

Warnings
⚠️

📊 Strict Mode: 5 errors in 1 file (0.5% of 931 total)

src/lib/services/data-encoder.ts (5)
  • L36:27: Type 'PotentialPayloads' is not assignable to type 'IPayloads'.
  • L53:8: Element implicitly has an 'any' type because expression of type '"Authorization"' can't be used to index type '{ 'Content-Type': string; 'X-Namespace': string; }'.
  • L56:8: Element implicitly has an 'any' type because expression of type '"Authorization-Extras"' can't be used to index type '{ 'Content-Type': string; 'X-Namespace': string; }'.
  • L60:6: Type 'PotentialPayloads' is not assignable to type 'IPayloads'.
  • L110:2: Type 'PotentialPayloads' is not assignable to type 'IPayloads'.

Generated by 🚫 dangerJS against 49eb62d

@rossedfort rossedfort enabled auto-merge (squash) May 15, 2026 20:39
@rossedfort rossedfort merged commit e4fee0b into main May 15, 2026
17 checks passed
@rossedfort rossedfort deleted the fix-codec-server-prefix branch May 15, 2026 20:40
url.searchParams.set('preserveStorageRefs', 'true');
// explicitly not constructing a new URL here because it
// drops any route prefix the user has configured, eg localhost:8080/codec-server
const url = `${endpoint}/${type}?preserveStorageRefs=true`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rossedfort I think simple concatenation fails if the endpoint already ends with a / character. Do we strip it out before hand somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codec server "could not connect" — new URL(type, endpoint) drops endpoint's last path segment (regression from #3345)

3 participants