wizardzhang commented on code in PR #4594:
URL: https://github.com/apache/eventmesh/pull/4594#discussion_r1412819828


##########
eventmesh-connectors/eventmesh-connector-wechat/src/main/java/org/apache/eventmesh/connector/wechat/sink/connector/WeChatSinkConnector.java:
##########
@@ -144,7 +144,7 @@ private void sendMessage(ConnectRecord record) {
         // get access token
         String accessToken = getAccessToken();
         MediaType mediaType = MediaType.parse("application/json; 
charset=utf-8");
-        RequestBody body = RequestBody.create(new String((byte[]) 
record.getData()), mediaType);
+        RequestBody body = RequestBody.create(mediaType, new String((byte[]) 
record.getData()));

Review Comment:
   because i downgrade the version so the RequestBody.create api is diffrent 
from the 4.10.0,  here is the test result 
Z8iQbtlGOPEsP5Np52RUx2u-DicDJAL3r3VqP_bae80



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to