Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

putObject throws darabonba.core.exception.TeaException: The value is not a map #5

Open
m1ngyuan opened this issue Mar 28, 2023 · 1 comment

Comments

@m1ngyuan
Copy link

m1ngyuan commented Mar 28, 2023

PutObjectRequest putObjectRequest = PutObjectRequest.builder() //
.bucket("bucket") //
.key(key) //
.body(body) //
.build();
CompletableFuture response = asyncClient.putObject(putObjectRequest);

Caused by: darabonba.core.exception.TeaException: The value is not a map at darabonba.core.utils.CommonUtil.assertAsMap(CommonUtil.java:45) at com.aliyun.sdk.gateway.oss.internal.interceptor.TransformRequestBodyInterceptor.fromBody(TransformRequestBodyInterceptor.java:58) at com.aliyun.sdk.gateway.oss.internal.interceptor.TransformRequestBodyInterceptor.modifyRequest(TransformRequestBodyInterceptor.java:31) at darabonba.core.interceptor.InterceptorChain.modifyRequest(InterceptorChain.java:69) at darabonba.core.TeaAsyncHandler.execute(TeaAsyncHandler.java:155) at com.aliyun.sdk.service.oss20190517.DefaultAsyncClient.putObject(DefaultAsyncClient.java:1225) at com.example.service.AliyunOssService.putObject(AliyunOssService.java:54) at com.example.service.AliyunOssServiceTests.testGetObject1(AliyunOssServiceTests.java:73) ... 69 more Caused by: java.lang.RuntimeException: The value is not a object ... 77 more

@niaoshuai
Copy link

The value is not a map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants