Skip to content

[FIX] ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) and 404 (Not Found #1119

Open
@john1726

Description

@john1726

Describe the bug

A clear and concise description of what the bug is. Please include what you were expecting to happen vs. what actually happened.

To Reproduce

Steps to reproduce the behavior:

Screenshots

If applicable, add screenshots to help explain your problem.

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

Additional context

When I use docker-compose up and try to ask a question I am seeing these errors in web tool:

page-3171ca8e84d308e3.js:1

            POST http://localhost:42110/api/chat?client=web net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
Q @ page-3171ca8e84d308e3.js:1
(anonymous) @ page-3171ca8e84d308e3.js:1
aW @ fd9d1056-7454f5bbfcf5bd5b.js:1
...
nw @ fd9d1056-7454f5bbfcf5bd5b.js:1
(anonymous) @ fd9d1056-7454f5bbfcf5bd5b.js:1
2117-ce1f0a4598f5e4fe.js:1  {streamError: 'Error reading API error response stream. Expected JSON response.'}
push.92304.window.console.error @ 2117-ce1f0a4598f5e4fe.js:1
Q @ page-3171ca8e84d308e3.js:1
await in Q
(anonymous) @ page-3171ca8e84d308e3.js:1
aW @ fd9d1056-7454f5bbfcf5bd5b.js:1
...
2117-ce1f0a4598f5e4fe.js:1 
            
            GET http://localhost:42110/chat.txt?conversationId=b01b9a21-a9fa-475d-951c-26fe703067ba&_rsc=15j27 404 (Not Found)

Also, when I try to ask a question it runs for a while then gives me this message:

Umm, not sure what just happened but I lost my train of thought. Could you try again or ask my developers to look into this if the issue persists? They can be contacted at the Khoj Github, Discord or team@khoj.dev.

I have spent time studying the guide at https://docs.khoj.dev/get-started/setup/?os=windows and a lot of github issue posts but have not been able to get it running. Does anyone have any suggestions? TIA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixFix something that isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions