java.lang.IllegalArgumentException: either chunked encoding must be set on the http request or contentlength set on the payload: {method=POST, endpoint=http://100.19.0.1:9292/v1/images, headers={x-image-meta-name=[new-image-jclouds2], Accept=[application/json], X-Image-Meta-Container_format=[ami], X-Image-Meta-Disk_format=[ami]}, payload=[content=true, contentMetadata=[contentDisposition=null, contentEncoding=null, contentLanguage=null, contentLength=null, contentMD5=null, contentType=application/octet-stream, expires=null], written=false]}


Solutions on the web273

Solution icon of googlegroups
either chunked encoding must be set on the http request or contentlength set on the payload: {method=POST, endpoint=http://100.19.0.1:9292/v1/images, headers={x-image-meta-name=[new-image-jclouds2], Accept=[application/json], X-Image-Meta

Solution icon of stackoverflow
Container image must not be null

Solution icon of github
The argument 'command' must not be null or empty.

Solution icon of github
null: number field formatted as a JSON string must use the @JsonString annotation: null

Solution icon of googlegroups
null

Solution icon of atlassian
via Atlassian JIRA by Michael Pymm, 1 year ago
null

Solution icon of atlassian
via Atlassian JIRA by Michael Pymm, 1 year ago
null

Solution icon of github
via GitHub by Hubcapp
, 1 year ago
null

Stack trace

java.lang.IllegalArgumentException: either chunked encoding must be set on
the http request or contentlength set on the payload: {method=POST,
endpoint=http://100.19.0.1:9292/v1/images,
headers={x-image-meta-name=[new-image-jclouds2], Accept=[application/json],
X-Image-Meta-Container_format=[ami], X-Image-Meta-Disk_format=[ami]},
payload=[content=true, contentMetadata=[contentDisposition=null,
contentEncoding=null, contentLanguage=null, contentLength=null,
contentMD5=null, contentType=application/octet-stream, expires=null],
written=false]}
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
	at org.jclouds.http.HttpUtils.checkRequestHasRequiredProperties(HttpUtils.java:360)
	at org.jclouds.rest.internal.RestAnnotationProcessor.createRequest(RestAnnotationProcessor.java:553)
	at org.jclouds.rest.internal.AsyncRestClientProxy.createListenableFutureForHttpRequestMappedToMethodAndArgs(AsyncRestClientProxy.java:237)
	at org.jclouds.rest.internal.AsyncRestClientProxy.invoke(AsyncRestClientProxy.java:148)
	at $Proxy74.create(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jclouds.concurrent.internal.SyncProxy.invoke(SyncProxy.java:164)
	at $Proxy75.create(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 6 months ago
10 times, 3 months ago
Once, 3 months ago
Once, 4 months ago
3 times, 5 months ago
33 more bugmates