Dashboard download fails because of invalid content length


the download of a dashboard fails occasionally because of invalid content length.

curl -v https://grafana.com/api/dashboards/3050/revisions/1/download


< Content-Length: 17440

which skips the last two bytes including final curly braces, which leaves the download unusable. Hence, my dashboard cannot be deployed to my Kubernetes cluster (see: https://github.com/kubernetes/charts/blob/master/stable/grafana/templates/configmap.yaml#L51), and so Grafana logs an entry each second about this.

I did not find a workaround for the content length. wget also fails.

Thanks for your ideas and comments!


Seems you’ll need to add --compressed to curl to get the full payload.