Skip to content

Commit cef9581

Browse files
committed
fix(devti): fix response body handling in ResponseBodyCallback #209
Improve error message handling by using string representation.
1 parent 75c83e5 commit cef9581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/cc/unitmesh/devti/llms/custom/ResponseBodyCallback.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ResponseBodyCallback(private val emitter: FlowableEmitter<SSE>, private va
5555
if (response.body == null) {
5656
throw AutoDevHttpException("Response body is null", response.code)
5757
} else {
58-
throw AutoDevHttpException(response.body?.toString() ?: "", response.code)
58+
throw AutoDevHttpException(response.body?.string() ?: "", response.code)
5959
}
6060
}
6161
val inputStream = response.body!!.byteStream()

0 commit comments

Comments
 (0)