Skip to content

Fix verifier receive URL construction for failover fetches#263

Merged
kojibai merged 1 commit intocodex/implement-opengraph-image-rendering-for-verified-glyphs-zhhgfyfrom
codex/fix-invalid-base-url-error
Jan 25, 2026
Merged

Fix verifier receive URL construction for failover fetches#263
kojibai merged 1 commit intocodex/implement-opengraph-image-rendering-for-verified-glyphs-zhhgfyfrom
codex/fix-invalid-base-url-error

Conversation

@kojibai
Copy link
Copy Markdown
Owner

@kojibai kojibai commented Jan 25, 2026

Motivation

  • Prevent runtime TypeError: Failed to construct 'URL': Invalid base URL by avoiding new URL(API_URLS_PATH, base) when base can be empty or otherwise invalid during failover URL construction.

Description

  • Import the shared urlUrls helper from apiClient and replace the new URL(API_URLS_PATH, base) usage with a query-built URL using URLSearchParams and ${urlUrls(base)}?${params.toString()} inside the apiFetchWithFailover call in VerifierStamper.

Testing

  • No automated tests were run for this change.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 25, 2026

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

Project Deployment Review Updated (UTC)
phi-network-5aii Ready Ready Preview, Comment Jan 25, 2026 0:20am

Request Review

@kojibai kojibai merged commit e104257 into codex/implement-opengraph-image-rendering-for-verified-glyphs-zhhgfy Jan 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant