On Wed, Jul 15, 2015 at 08:53:32AM -0600, Tycho Andersen wrote: > On Wed, Jul 15, 2015 at 05:36:27PM +0300, Jony Opipo wrote: > > 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? > > Looks like a bug. You have to set the gid/uid/mode headers as > specified here: > > https://github.com/lxc/lxd/blob/master/specs/rest-api.md#post-2 > > although the spec says may, the code seems to require them right now.
I just filed https://github.com/lxc/lxd/issues/853 so we can track it, thanks! Tycho _______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users