Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Multibyte query support #935

Open
3 of 14 tasks
adamist521 opened this issue Oct 9, 2024 · 0 comments
Open
3 of 14 tasks

[FIX] Multibyte query support #935

adamist521 opened this issue Oct 9, 2024 · 0 comments
Labels
fix Fix something that isn't working as expected

Comments

@adamist521
Copy link

Describe the bug

I get following error when I input multibyte character when querying.

error in process sentinel: Multibyte text in HTTP request: POST /api/chat?client=emacs HTTP/1.1
MIME-Version: 1.0
Connection: keep-alive
Host: 127.0.0.1:42110
Accept-encoding: gzip
Accept: */*
User-Agent: URL/Emacs Emacs/29.1 (Mac; aarch64-apple-darwin23.4.0)
Authorization: Bearer YOUR_KHOJ_CLOUD_API_KEY
Content-Type: application/json
Content-length: 23

{"q":"日本語いけますか?","n":8}

To Reproduce

  • Input Multibyte Char(in my case Japanese) to Chat (Query) to Khoj

Platform

  • Server:
    • Cloud-Hosted (https://app.khoj.dev)
    • Self-Hosted Docker
    • Self-Hosted Python package
    • Self-Hosted source code
  • Client:
    • Obsidian
    • Emacs
    • Desktop app
    • Web browser
    • WhatsApp
  • OS:
    • Windows
    • macOS
    • Linux
    • Android
    • iOS

If self-hosted

  • Server Version [e.g. 1.0.1]: v1.24.1

Additional context

Searching around, I've found some issues seems to relate to this bug so I'll list it below.

@adamist521 adamist521 added the fix Fix something that isn't working as expected label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix something that isn't working as expected
Projects
None yet
Development

No branches or pull requests

1 participant