Skip to content

Timeout when including Chinese character on Windows #15

@rcy17

Description

@rcy17

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions