diff --git a/coderd/workspaceagents.go b/coderd/workspaceagents.go index aca9b0328f04f..f75c89f72a5cb 100644 --- a/coderd/workspaceagents.go +++ b/coderd/workspaceagents.go @@ -1154,6 +1154,9 @@ func (api *API) workspaceAgentsGitAuth(rw http.ResponseWriter, r *http.Request) UserID: workspace.OwnerID, }) if err != nil { + if errors.Is(err, sql.ErrNoRows) { + continue + } httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{ Message: "Failed to get git auth link.", Detail: err.Error(),