diff --git a/internal/server/v1/firehose/crud.go b/internal/server/v1/firehose/crud.go index e80ee04..073dda1 100644 --- a/internal/server/v1/firehose/crud.go +++ b/internal/server/v1/firehose/crud.go @@ -12,6 +12,7 @@ import ( shieldv1beta1 "buf.build/gen/go/gotocompany/proton/protocolbuffers/go/gotocompany/shield/v1beta1" "github.com/go-chi/chi/v5" "github.com/go-openapi/strfmt" + "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" @@ -171,7 +172,8 @@ func (api *firehoseAPI) handleList(w http.ResponseWriter, r *http.Request) { Labels: labelFilter, } - rpcResp, err := api.Entropy.ListResources(r.Context(), rpcReq) + maxBytes := 20000000 // 2,000,000 bytes + rpcResp, err := api.Entropy.ListResources(r.Context(), rpcReq, grpc.MaxCallRecvMsgSize(maxBytes)) if err != nil { utils.WriteErr(w, err) return