python-sonic-client
python-sonic-client copied to clipboard
Timeout when including Chinese character on Windows
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:
- Connect to sonic
- 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.
Finally I found it's solved in #14, but it's not release as a new version like v0.0.6 .