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 web22056

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 github
image == null!

Solution icon of stackoverflow
via Stack Overflow by Zara
, 1 year ago
image == null!

Solution icon of stackoverflow
image == null!

Solution icon of stackoverflow
via Stack Overflow by user2598911
, 1 year ago
image == null!

Solution icon of stackoverflow
via Stack Overflow by ketan shah
, 1 year ago
image == null!

Solution icon of stackoverflow
image == null!

Solution icon of stackoverflow
image == null!

Solution icon of github
via GitHub by geoHeil
, 3 months ago
image == null!

Solution icon of stackoverflow
image == 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, 4 months ago
10 times, 1 month ago
Once, 1 month ago
Once, 2 months ago
3 times, 4 months ago
32 more bugmates