Runtime error: invalid memory address or nil pointer dereference

Hi,
I am trying to issue a POST request to grafana to import an existing dashboard json but I get the following error. However, through the UI I can take the same json and upload and the dashboard works fine.
t=2017-08-03T19:23:12+0000 lvl=eror msg=“Request error” logger=context userId=0 orgId=1 uname= error=“runtime error: invalid memory address or nil pointer dereference” stack="/usr/local/go/src/runtime/panic.go:489 (0x430e7f)\n/usr/local/go/src/runtime/panic.go:63 (0x42fd2e)\n/usr/local/go/src/runtime/signal_unix.go:290 (0x4462ff)\n/go/src/github.com/grafana/grafana/pkg/models/dashboards.go:75 (0x800372)\n/go/src/github.com/grafana/grafana/pkg/plugins/dashboard_importer.go:53 (0x814289)\n/usr/local/go/src/runtime/asm_amd64.s:514 (0x45dc58)\n/usr/local/go/src/reflect/value.go:434 (0x4aeccf)\n/usr/local/go/src/reflect/value.go:302 (0x4ae294)\n/go/src/github.com/grafana/grafana/pkg/bus/bus.go:73 (0x80fdbe)\n/go/src/github.com/grafana/grafana/pkg/bus/bus.go:154 (0x810b99)\n/go/src/github.com/grafana/grafana/pkg/api/plugins.go:176 (0xd9c261)\n/usr/local/go/src/runtime/asm_amd64.s:516 (0x45dd76)\n/usr/local/go/src/reflect/value.go:434 (0x4aeccf)\n/usr/local/go/src/reflect/value.go:302 (0x4ae294)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x78116f)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x780b3a)\n/go/src/github.com/grafana/grafana/pkg/api/common.go:37 (0xdabd1c)\n/usr/local/go/src/runtime/asm_amd64.s:514 (0x45dc58)\n/usr/local/go/src/reflect/value.go:434 (0x4aeccf)\n/usr/local/go/src/reflect/value.go:302 (0x4ae294)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x78116f)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x780b3a)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x79ee12)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x79ed36)\n/go/src/github.com/grafana/grafana/pkg/middleware/request_metrics.go:14 (0xb41677)\n/usr/local/go/src/runtime/asm_amd64.s:514 (0x45dc58)\n/usr/local/go/src/reflect/value.go:434 (0x4aeccf)\n/usr/local/go/src/reflect/value.go:302 (0x4ae294)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x78116f)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x780b3a)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x79ee12)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x79ed36)\n/go/src/github.com/grafana/grafana/pkg/middleware/session.go:79 (0xb418bb)\n/usr/local/go/src/runtime/asm_amd64.s:514 (0x45dc58)\n/usr/local/go/src/reflect/value.go:434 (0x4aeccf)\n/usr/local/go/src/reflect/value.go:302 (0x4ae294)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x78116f)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x780b3a)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x79ee12)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x79ed36)\n/go/src/github.com/grafana/grafana/pkg/middleware/recovery.go:146 (0xb415e1)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:79 (0x79ebb1)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:157 (0x780e42)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:135 (0x780c3b)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x79ee12)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:112 (0x79ed36)\n/go/src/github.com/grafana/grafana/pkg/middleware/logger.go:33 (0xb3ef42)\n/usr/local/go/src/runtime/asm_amd64.s:514 (0x45dc58)\n/usr/local/go/src/reflect/value.go:434 (0x4aeccf)\n/usr/local/go/src/reflect/value.go:302 (0x4ae294)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x78116f)\n/go/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x780b3a)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:121 (0x79ee12)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/router.go:187 (0x7b0c69)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/router.go:296 (0x7ab06d)\n/go/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/macaron.go:220 (0x7a38ec)\n/usr/local/go/src/net/http/server.go:2568 (0x68df12)\n/usr/local/go/src/net/http/server.go:1825 (0x68a2e2)\n/usr/local/go/src/runtime/asm_amd64.s:2197 (0x4603f1)\n"
t=2017-08-03T19:23:12+0000 lvl=eror msg=“Request Completed” logger=context userId=0 orgId=1 uname= method=POST path=/api/dashboards/import status=500 remote_addr=[::1] time_ms=4 size=722 referer=

Any idea what could be the issue. I am using grafana:4.4.1 docker image

looks like invalid POST data, please include what your sending