{"record":{"id":"fb061609b4194853","repo":"argoproj/argo-workflows","slug":"grpc-message-size-environment-variable-must-be-set","errorCode":null,"errorMessage":"GRPC_MESSAGE_SIZE environment variable must be set as an integer: %w","messagePattern":"GRPC_MESSAGE_SIZE environment variable must be set as an integer: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/apiserver/argoserver.go","lineNumber":182,"sourceCode":"\t\tlog.Info(ctx, \"SSO enabled\")\n\t} else {\n\t\tlog.Info(ctx, \"SSO disabled\")\n\t}\n\tgatekeeper, err := auth.NewGatekeeper(opts.AuthModes, opts.Clients, opts.RestConfig, ssoIf, auth.DefaultClientForAuthorization, opts.Namespace, opts.SSONamespace, opts.Namespaced, resourceCache)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tstore, err := memorystore.New(&memorystore.Config{\n\t\tTokens:   opts.APIRateLimit,\n\t\tInterval: time.Second,\n\t})\n\tif err != nil {\n\t\tlog.WithFatal().Error(ctx, err.Error())\n\t}\n\n\tmaxGRPCMessageSize, err := env.GetInt(\"GRPC_MESSAGE_SIZE\", 100*1024*1024)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"GRPC_MESSAGE_SIZE environment variable must be set as an integer: %w\", err)\n\t}\n\n\treturn &argoServer{\n\t\tbaseHRef:                 opts.BaseHRef,\n\t\ttlsConfig:                opts.TLSConfig,\n\t\thsts:                     opts.HSTS,\n\t\tnamespace:                opts.Namespace,\n\t\tmanagedNamespace:         opts.ManagedNamespace,\n\t\tclients:                  opts.Clients,\n\t\tgatekeeper:               gatekeeper,\n\t\toAuth2Service:            ssoIf,\n\t\tconfigController:         configController,\n\t\tstopCh:                   make(chan struct{}),\n\t\teventQueueSize:           opts.EventOperationQueueSize,\n\t\teventWorkerCount:         opts.EventWorkerCount,\n\t\teventAsyncDispatch:       opts.EventAsyncDispatch,\n\t\txframeOptions:            opts.XFrameOptions,\n\t\taccessControlAllowOrigin: opts.AccessControlAllowOrigin,","sourceCodeStart":164,"sourceCodeEnd":200,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/server/apiserver/argoserver.go#L164-L200","documentation":"The GRPC_MESSAGE_SIZE environment variable could not be parsed as an integer (util env.GetInt). Argo-server startup aborts because the max gRPC message size is unknown; the default is 100MB when the variable is unset.","triggerScenarios":"Thrown at server/apiserver/argoserver.go:182 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set GRPC_MESSAGE_SIZE to a plain integer (bytes), e.g. 104857600","Or unset it to accept the 100MB default"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35bff19146f5a6ada77468c431f2624bd577e373","analyzedAt":"2026-09-03T19:34:35.908Z","contentChangedAt":"2026-09-03T19:34:35.908Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}