Repository navigation
fix(gateway): say why the HTTP client could not be created - #180
Merged
Merged
Conversation
reqwest's builder error only reports its outermost layer, so the gateway failed to start with "The HTTP client could not be created: builder error". The actual cause sits in source(). On a Linux box without ca-certificates it is "No CA certificates were loaded from the system". The three client-building sites now go through one helper that unwraps the chain. Code and parameters are unchanged; only the detail text gets richer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while installing lite's rehearsal deb in a clean
ubuntu:22.04: withoutca-certificates,twcore serveexits withThe HTTP client could not be created: builder error. reqwest keeps the cause insource().outbound::client_error, unwraps the error chain. It replaces the three hand-rolledgw.config.http_clientsites (public_client,client_for_provider,AppState::new).detailparameter are unchanged, so no translation contract changes.Verified in a Linux container with
SSL_CERT_FILE/SSL_CERT_DIRpointed at an empty dir:Error: The HTTP client could not be created: builder error: unexpected error: No CA certificates were loaded from the system. With certificates present it listens normally. macOS: fmt, clippy -D warnings (workspace) and tw-gateway tests pass.lite's deb now depends on ca-certificates (ThinkWatch-Lite#174); this covers the AppImage and any other install that ends up without roots.
🤖 Generated with Claude Code