[lxc-users] LXD REST API file upload error

Jony Opipo reversecipher at gmail.com
Wed Jul 15 14:36:27 UTC 2015


Hi

I am trying to upload file to container using REST API and I get the
following error:

curl -s -k -X POST -d "@test" --cert client.crt --key client.key
https://192.168.10.155:8443/1.0/containers/test/files?path=/tmp/test

015/07/15 17:17:31 handling POST /1.0/containers/test/files?path=/tmp/test
2015/07/15 17:17:31
{
"error": "strconv.ParseInt: parsing \"\": invalid syntax",
"error_code": 400,
"type": "error"
}


Does anyone know if I have syntax error or is this a bug?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150715/66efa1cc/attachment.html>


More information about the lxc-users mailing list