fix: translate send data chunk to string
fix: error handle of message and code refinement