Skip to content

fix: report missing repository preview credentials as a bad request - #5

Open
rodboev wants to merge 1 commit into
mainfrom
pr/repo-preview-missing-credentials
Open

fix: report missing repository preview credentials as a bad request#5
rodboev wants to merge 1 commit into
mainfrom
pr/repo-preview-missing-credentials

Conversation

@rodboev

@rodboev rodboev commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Repository previews now return a 400 bad request when GitHub credentials are not configured, matching the existing runtime-token and registry-backed provider behavior. The legacy GitHub client adapter preserves the typed provider_not_configured error so the shared HTTP problem mapper applies that classification, while configured-client failures without a local configuration classification remain 502.

This change covers the preview handler, provider registry, GitHub adapter, and HTTP problem mapper path described in @Technophobe01's report at kenn-io#675. The status contract follows the runtime-token handling introduced by @cpcloud in kenn-io#450.

Closes kenn-io#675

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.

Repo preview returns 502 Bad Gateway when no GitHub token is configured

1 participant