Putting an accent in a prompt causes Ollama EOF error #451

Closed
opened 2025-11-11 14:21:41 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @pietrini on GitHub (Mar 10, 2024).

Bug Report

Description

Bug Summary:
Accents causing EOF issue. Pay attention to the logs where I've asked the same thing (in french) with and without accents. I've tested this directly with Ollama in terminal and with another UI client (Enchanted LLM) and it works.

Steps to Reproduce:
Type a prompt containing any accent like é.

Actual Behavior:
Internal error 500 returned by Ollama server.

Environment

  • Operating System: Mac OS Sonoma 14.4
  • Browser (if applicable): Arc 1.33.0 (not sure if relevant)

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.

Logs and Screenshots

Browser Console Logs:
N/A

Docker Container Logs:
2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "POST /api/v1/chats/new HTTP/1.1" 200 OK
2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-10 10:14:26 http://host.docker.internal:11434
2024-03-10 10:14:26 {"model":"mixtral:latest","messages":[{"role":"user","content":"Rédige moi un email pour expliquer à mon patron que je souhaite quitter son entreprise. Tu es un avocat. Soit concis et formel."},{"role":"assistant","content":""}],"options":{},"stream":true}
2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "POST /ollama/api/chat HTTP/1.1" 500 Internal Server Error
2024-03-10 10:14:26 http://host.docker.internal:11434
2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "POST /ollama/api/generate HTTP/1.1" 500 Internal Server Error
2024-03-10 10:14:43 INFO: 192.168.65.1:20271 - "POST /api/v1/chats/new HTTP/1.1" 200 OK
2024-03-10 10:14:43 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-10 10:14:45 http://host.docker.internal:11434
2024-03-10 10:14:45 {"model":"mixtral:latest","messages":[{"role":"user","content":"Redige moi un email pour expliquer a mon patron que je souhaite quitter son entreprise. Tu es un avocat. Soit concis et formel."},{"role":"assistant","content":""}],"options":{},"stream":true}
2024-03-10 10:14:45 INFO: 192.168.65.1:20271 - "POST /ollama/api/chat HTTP/1.1" 200 OK
2024-03-10 10:14:53 INFO: 192.168.65.1:20271 - "POST /api/v1/chats/3a480ba3-b2b2-45f5-aa76-386fbe70db46 HTTP/1.1" 200 OK
2024-03-10 10:14:53 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-10 10:14:55 http://host.docker.internal:11434
2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "POST /ollama/api/generate HTTP/1.1" 200 OK
2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "POST /api/v1/chats/3a480ba3-b2b2-45f5-aa76-386fbe70db46 HTTP/1.1" 200 OK
2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK

Screenshots (if applicable):
Screenshot 2024-03-10 at 09 56 14

Installation Method

Docker desktop + Ollama desktop app

Additional Information

[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @pietrini on GitHub (Mar 10, 2024). # Bug Report ## Description **Bug Summary:** Accents causing EOF issue. Pay attention to the logs where I've asked the same thing (in french) with and without accents. I've tested this directly with Ollama in terminal and with another UI client (Enchanted LLM) and it works. **Steps to Reproduce:** Type a prompt containing any accent like é. **Actual Behavior:** Internal error 500 returned by Ollama server. ## Environment - **Operating System:** Mac OS Sonoma 14.4 - **Browser (if applicable):** Arc 1.33.0 (not sure if relevant) ## Reproduction Details **Confirmation:** - [X] I have read and followed all the instructions provided in the README.md. - [X] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [X] I have included the Docker container logs. ## Logs and Screenshots **Browser Console Logs:** N/A **Docker Container Logs:** 2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "POST /api/v1/chats/new HTTP/1.1" 200 OK 2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "GET /api/v1/chats/ HTTP/1.1" 200 OK 2024-03-10 10:14:26 http://host.docker.internal:11434 2024-03-10 10:14:26 {"model":"mixtral:latest","messages":[{"role":"user","content":"Rédige moi un email pour expliquer à mon patron que je souhaite quitter son entreprise. Tu es un avocat. Soit concis et formel."},{"role":"assistant","content":""}],"options":{},"stream":true} 2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "POST /ollama/api/chat HTTP/1.1" 500 Internal Server Error 2024-03-10 10:14:26 http://host.docker.internal:11434 2024-03-10 10:14:26 INFO: 192.168.65.1:20270 - "POST /ollama/api/generate HTTP/1.1" 500 Internal Server Error 2024-03-10 10:14:43 INFO: 192.168.65.1:20271 - "POST /api/v1/chats/new HTTP/1.1" 200 OK 2024-03-10 10:14:43 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK 2024-03-10 10:14:45 http://host.docker.internal:11434 2024-03-10 10:14:45 {"model":"mixtral:latest","messages":[{"role":"user","content":"Redige moi un email pour expliquer a mon patron que je souhaite quitter son entreprise. Tu es un avocat. Soit concis et formel."},{"role":"assistant","content":""}],"options":{},"stream":true} 2024-03-10 10:14:45 INFO: 192.168.65.1:20271 - "POST /ollama/api/chat HTTP/1.1" 200 OK 2024-03-10 10:14:53 INFO: 192.168.65.1:20271 - "POST /api/v1/chats/3a480ba3-b2b2-45f5-aa76-386fbe70db46 HTTP/1.1" 200 OK 2024-03-10 10:14:53 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK 2024-03-10 10:14:55 http://host.docker.internal:11434 2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "POST /ollama/api/generate HTTP/1.1" 200 OK 2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "POST /api/v1/chats/3a480ba3-b2b2-45f5-aa76-386fbe70db46 HTTP/1.1" 200 OK 2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK 2024-03-10 10:14:55 INFO: 192.168.65.1:20271 - "GET /api/v1/chats/ HTTP/1.1" 200 OK **Screenshots (if applicable):** ![Screenshot 2024-03-10 at 09 56 14](https://github.com/open-webui/open-webui/assets/2203877/f8ce89f4-b83a-4c95-9757-042da731de3c) ## Installation Method Docker desktop + Ollama desktop app ## Additional Information [Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Author
Owner

@tjbck commented on GitHub (Mar 10, 2024):

image

Cannot reproduce the issue, seems to be working fine with the latest version. Could you make sure you're on the latest version?

@tjbck commented on GitHub (Mar 10, 2024): <img width="818" alt="image" src="https://github.com/open-webui/open-webui/assets/25473318/941eedc6-f56a-4682-bd07-0960792842ca"> Cannot reproduce the issue, seems to be working fine with the latest version. Could you make sure you're on the latest version?
Author
Owner

@pietrini commented on GitHub (Mar 10, 2024):

Hi @tjbck thanks a lot for your swift answer ! I just deleted everything and reinstalled a fresh image image through docker and it works as expected.
I think I did a mistake during the latest update, all good now !
Have a great day !

@pietrini commented on GitHub (Mar 10, 2024): Hi @tjbck thanks a lot for your swift answer ! I just deleted everything and reinstalled a fresh image image through docker and it works as expected. I think I did a mistake during the latest update, all good now ! Have a great day !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#451