pandaapo commented on code in PR #4594:
URL: https://github.com/apache/eventmesh/pull/4594#discussion_r1412805084
##########
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:
I see your new modification here. So I would like to confirm one thing with
you. You have successfully run this Sink locally and sent messages to WeChat,
right?
--
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]