wso2 / micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
194 stars 206 forks source link

When wire-logs are enabled sending a request via runtime services swagger view prints the response in hexadecimal in the log files #3379

Closed gabilang closed 5 days ago

gabilang commented 6 days ago

Sending request via the runtime services swagger view panel of the vscode plugin gives the response in hexadecimal format in the wso2carbon.log file when wire-logs are enabled.

Response when sending request from the terminal via curl:

[2024-06-27 09:15:02,157] DEBUG {org.apache.synapse.transport.http.wire} - HTTP-Listener I/O dispatcher-3 << "{"appointmentNumber":9,"doctor":{"name":"thomas collins","hospital":"grand oak community hospital","category":"surgery","availability":"9.00 a.m - 11.00 a.m","fee":7000.0},"patient":{"name":"John Doe","dob":"1940-03-19","ssn":"234-23-525","address":"California","phone":"8770586755","email":"johndoe@gmail.com"},"fee":7000.0,"confirmed":false}[\r][\n]"

Response when sending request via the runtime services swagger view panel of vscode:

[2024-06-27 09:16:28,375] DEBUG {org.apache.synapse.transport.http.wire} - HTTP-Listener I/O dispatcher-4 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0]T[0x8f][0xc1]n[0x84]0[0xc]D%[0xf2][0x19]P[0x80][0xa5][0xec]r[0xaa][0xd4][0x9e]z[0xe8]?[0x18]b m[0x12][0xa3]$TZ[0xad][0xf8][0xf7][0x1a][0xa9][0xaa][0xda][0xdb][0xe4][0xcd](3~[0x0]n[0x1b][0xdb][0x90]=[0x85][0xfc][0xbe][0xfb][0x91]"[0xc][0xb5].[0xc0][0xf0][0x94]Y[0xf4][0x3][0x2]z[0x82][0x1][0xf2][0xca][0x1e][0x93][0x9a][0xd8]9[0x1b][0x12][0x14][0xb0]r[0xda]lF'[0xde][0x12]1[0x18][0xc5][0xf8])[0xb6][0xf7]{[0xb0][0xf9][0xae]~[0xed][0x2]&[0xcc][0xb4]p[0xbc]K2[0xed]q!Q[0x5][0xe0][0x17]Z[0x87][0xa3]u[0x12][0x16][0xe3]Vi[0xad][0xb0][0xf2][0xaa]Tu[0xfd][0xa3]%5[0x93]t[0xf7]Z[0xeb]J[0x1f][0x5]l[0x98][0xad][0xec][0xfc][0xb3][0xea][0x8d][0xd7][0xa0]^[0x99][0xe0]\<[\n]"
[2024-06-27 09:16:28,375] DEBUG {org.apache.synapse.transport.http.wire} - HTTP-Listener I/O dispatcher-4 << "[0xa8]o[0x17]][0xea][0xb6][0xac]o[0x82]R[\n]"
[2024-06-27 09:16:28,375] DEBUG {org.apache.synapse.transport.http.wire} - HTTP-Listener I/O dispatcher-4 << "[0x82][0x9a][0xf6]R6m[0xd9]5[0xdd]YkL[0xa4][0x94][0x4][0xbf][0xa0][0xb3]3[0xc7]`Q[0xf0][0xb6]r8[0xff][0xbb][0xf6][0xbd][0xee][0xae]O}wf[0xc9][0xcb]D[0x81][0x1f]Rb[0x98][0x9e][0x97][0xf3]][0xc9][0x89]p[0xfc][&[0x17]r[0x98]m[0xf4]d`[0x98][0xd1]%:[0xbe][0x1][0x0][0x0][0xff][0xff][0x3][0x0][0x6]p[0xc5][0x1b]X[0x1][0x0][0x0][\r][\n]"
[2024-06-27 09:16:28,375] DEBUG {org.apache.synapse.transport.http.wire} - HTTP-Listener I/O dispatcher-4 << "0[\r][\n]"
arunans23 commented 5 days ago

This is expected when the Content-Encoding is "gzip". Hence closing this issue.