MCPcopy Create free account
hub / github.com/easyp-tech/server / upstreamError

Method upstreamError

internal/connect/commits.go:809–811  ·  view source on GitHub ↗

upstreamError writes a 502 response with the given message and any extra structured log attributes. Use when the request was well-formed but talking to the back-end registry/provider failed.

(r *http.Request, w http.ResponseWriter, msg string, attrs ...slog.Attr)

Source from the content-addressed store, hash-verified

807// structured log attributes. Use when the request was well-formed but
808// talking to the back-end registry/provider failed.
809func (h *commitServiceHandler) upstreamError(r *http.Request, w http.ResponseWriter, msg string, attrs ...slog.Attr) {
810 h.logHandlerError(r, w, msg, http.StatusBadGateway, attrs...)
811}
812
813// resolveForeignCommitID attempts to recover the module identity for a
814// commit_id this proxy never minted (e.g. one a buf CLI client cached from a

Callers 3

ServeHTTPMethod · 0.95
ServeGraphMethod · 0.95
ServeDownloadMethod · 0.95

Calls 1

logHandlerErrorMethod · 0.95

Tested by

no test coverage detected