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)
| 807 | // structured log attributes. Use when the request was well-formed but |
| 808 | // talking to the back-end registry/provider failed. |
| 809 | func (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 |
no test coverage detected