Hi!
I use Send a signal to a Session REST API and record chat conversation using custom-layout.
but When using the East Asian character set, the character “???” A phenomenon has occurred.
version info : openvidu server 2.18
- send signal event(REST API call “POST /openvidu/api/signal”) : sending data “data”:“signal シグナル 시그널 信号”
curl -u OPENVIDUAPP:MY_SECRET -d ‘{“session”:“ses_YnDaGYNcd7”,“to”: [“con_Xnxg19tonh”, “con_TNVdbuQCJF”],“type”:“MY_TYPE”,“data”:“signal シグナル 시그널 信号”}’ -H “Content-Type: application/json;charset=utf-8” -X POST http://127.0.0.1:5443/openvidu/api/signal
- server log : character “???” A phenomenon has occurred
[INFO] 2021-06-09 00:34:33,932 [http-nio-0.0.0.0-5443-exec-4] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/signal {session=ses_YnDaGYNcd7, to=[con_Xnxg19tonh, con_TNVdbuQCJF], type=MY_TYPE, data=signal ??? ??? ???}
and record chat conversation using custom-layout
- screen capture : chat conversation recording file character encoding error
- front app code : using openvidu-browser 2.18
sendMessage(message: string) {
message = message.replace(/ +(?= )/g, ‘’);
if (message !== ‘’ && message !== ’ ') {
const data = {
message: message,
nickname: this.oVSessionService.getWebcamUserName()
};
const sessionAvailable = this.oVSessionService.getConnectedUserSession();
sessionAvailable.signal({
data: JSON.stringify(data),
to: this.to,
type: this.signal
});
}
}
- server log : character “???” A phenomenon has occurred
[INFO] 2021-06-09 01:13:50,890 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con_GbeaPEcjRQ is calling method ‘signal’ in session roomA
[INFO] 2021-06-09 01:13:50,891 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.cdr.CDRLoggerFile - {“signalSent”:{“sessionId”:“roomA”,“uniqueSessionId”:“roomA_1623201025049”,“timestamp”:1623201230891,“from”:“con_GbeaPEcjRQ”,“to”:[“con_Fcc21sDvIR”,“con_GbeaPEcjRQ”,“RECORDER”],“type”:“chat”,“data”:"{“message”:“signal”,“nickname”:“teacher”}"}}
[INFO] 2021-06-09 01:14:26,749 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con_GbeaPEcjRQ is calling method ‘signal’ in session roomA
[INFO] 2021-06-09 01:14:26,752 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.cdr.CDRLoggerFile - {“signalSent”:{“sessionId”:“roomA”,“uniqueSessionId”:“roomA_1623201025049”,“timestamp”:1623201266752,“from”:“con_GbeaPEcjRQ”,“to”:[“con_Fcc21sDvIR”,“con_GbeaPEcjRQ”,“RECORDER”],“type”:“chat”,“data”:"{“message”:"??? “,“nickname”:“teacher”}”}}
[INFO] 2021-06-09 01:14:37,703 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con_GbeaPEcjRQ is calling method ‘signal’ in session roomA
[INFO] 2021-06-09 01:14:37,704 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.cdr.CDRLoggerFile - {“signalSent”:{“sessionId”:“roomA”,“uniqueSessionId”:“roomA_1623201025049”,“timestamp”:1623201277704,“from”:“con_GbeaPEcjRQ”,“to”:[“con_Fcc21sDvIR”,“con_GbeaPEcjRQ”,“RECORDER”],“type”:“chat”,“data”:"{“message”:"??? “,“nickname”:“teacher”}”}}
[INFO] 2021-06-09 01:14:43,386 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.rpc.RpcHandler - Participant con_GbeaPEcjRQ is calling method ‘signal’ in session roomA
[INFO] 2021-06-09 01:14:43,387 [SessionHandler-oe8p6oh7u0aihahms8ae6njh2q-e4-t0] io.openvidu.server.cdr.CDRLoggerFile - {“signalSent”:{“sessionId”:“roomA”,“uniqueSessionId”:“roomA_1623201025049”,“timestamp”:1623201283387,“from”:“con_GbeaPEcjRQ”,“to”:[“con_Fcc21sDvIR”,“con_GbeaPEcjRQ”,“RECORDER”],“type”:“chat”,“data”:"{“message”:"??",“nickname”:“teacher”}"}}
Is there any solution that with some OpenVidu Server configuration ?