The documentation you are viewing is for Dapr v1.6 which is an older version of Dapr. For up-to-date documentation, see the latest version.

How-To: Handle large http header size

Configure a larger http read buffer size

Dapr has a default limit of 4KB for the http header read buffer size. When sending http headers that are bigger than the default 4KB, you can increase this value. Otherwise, you may encounter a Too big request header service invocation error. You can change the http header size by using the annotation or --dapr-http-read-buffer-size flag when using the CLI.

When running in self hosted mode, use the --dapr-http-read-buffer-size flag to configure Dapr to use non-default http header size:

dapr run --dapr-http-read-buffer-size 16 node app.js

This tells Dapr to set maximum read buffer size to 16 KB.

On Kubernetes, set the following annotations in your deployment YAML:

apiVersion: apps/v1
kind: Deployment
  name: myapp
  namespace: default
    app: myapp
  replicas: 1
      app: myapp
        app: myapp
      annotations: "true" "myapp" "8000" "16"