sdk-codegen icon indicating copy to clipboard operation
sdk-codegen copied to clipboard

Kotlin SDK - delete_user_attribute_user_value() can't handle success response from API

Open felipebn opened this issue 4 years ago • 0 comments

When invoking sdk.ok<Any>(sdk.delete_user_attribute_user_value(user.id!!, attribute.user_attribute_id!!)) the error below is thrown. Please note that it's a success 204 response, from the API swagger it does not have a response body.

java.lang.Error: DELETE /users/2/attribute_values/11 io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class java.lang.Void
with response from http://localhost:32830/api/4.0/users/2/attribute_values/11:
status: 204 No Content
response headers: 
connection: keep-alive
, date: Sun, 11 Jul 2021 01:34:30 GMT
, server: nginx/1.18.0
, set-cookie: looker.browser=10; expires=Wed, 10 Jul 2024 01:34:30 GMT; HttpOnly
, vary: Origin
, x-b3-parentspanid: 202714101b7da3b1
, x-b3-sampled: 0
, x-b3-spanid: 202714101b7da3b1
, x-b3-traceid: 60ea4aa6d4624fa4202714101b7da3b1
, x-content-type-options: nosniff


	at com.looker.rtl.APIMethods.ok(APIMethods.kt:38)

felipebn avatar Jul 11 '21 01:07 felipebn