python-sonic-client icon indicating copy to clipboard operation
python-sonic-client copied to clipboard

Timeout when including Chinese character on Windows

Open rcy17 opened this issue 4 years ago • 1 comments

Describe the bug Client's socket raise timout error when object or text (or bucket name? not tested.) containing Chinese character on Window platform, but it works expectedly on Linux.

To Reproduce Steps to reproduce the behavior:

  1. Connect to sonic
  2. Push or query something in Chinese, like ingestcl.push('wiki', 'default', 'something', '今天天气不错')

Expected behavior Normal return.

** Versions (please complete the following information):**

  • OS: Windows 10
  • Sonic version: 1.3.2
  • Sonic client version: 0.0.5

Additional context I believe that sonic expects UTF-8 encoding, which is the default encoding in Python3 on Linux, but on Windows default would be GBK instead.

rcy17 avatar Dec 02 '21 07:12 rcy17

Finally I found it's solved in #14, but it's not release as a new version like v0.0.6 .

rcy17 avatar Dec 02 '21 07:12 rcy17