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] If more than 25 files are uploaded at once, the emacs client becomes unresponsive or the server responds with an error #726

Closed
3 of 14 tasks
yuzhou721 opened this issue Apr 27, 2024 · 1 comment · Fixed by #735
Labels
fix Fix something that isn't working as expected

Comments

@yuzhou721
Copy link
Contributor

yuzhou721 commented Apr 27, 2024

Describe the bug

Such as the title

To Reproduce

Steps to reproduce the behavior:
After setting up the directory, execute khoj--server-index-files

Screenshots

message buffer

khoj.el: Failed to update allcontent index. Status: http 400. Response: {"detail":"There was an error parsing the body"}
error in process sentinel: url-http-async-sentinel: Output file descriptor of app.khoj.dev is closed
error in process sentinel: Output file descriptor of app.khoj.dev is closed

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]:

Additional context

Sending a lot of files with url.el doesn't seem very stable, could you change it to curl?
If possible I can submit a RP

@yuzhou721 yuzhou721 added the fix Fix something that isn't working as expected label Apr 27, 2024
@yuzhou721
Copy link
Contributor Author

Found two issues:

  1. File name encoding issue (Chinese characters in file names will cause errors on the backend)
  2. Tried sending in batches, able to send all 20 at a time.

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

Successfully merging a pull request may close this issue.

1 participant