Invalid external links can cause the program to crash. #4091

Closed
opened 2025-11-11 15:45:53 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @glimpse-0201 on GitHub (Feb 24, 2025).

Bug Report

Installation Method

git clone

Environment

  • Open WebUI Version: v0.5.16
  • Operating System: macOS Sequoia
  • Browser (if applicable): Chrome 133

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.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

After I add an external link, it should retrieve the available models from the current link. An error popup or warning should be displayed if retrieval fails.

Actual Behavior:

The service crashed when I added an invalid link and failed to retrieve the model.

Description

Bug Summary:
[Provide a brief but clear summary of the bug]

Reproduction Details

Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:
[Include relevant Docker container logs, if applicable]

Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

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 @glimpse-0201 on GitHub (Feb 24, 2025). # Bug Report ## Installation Method git clone ## Environment - **Open WebUI Version:** v0.5.16 - **Operating System:** macOS Sequoia - **Browser (if applicable):** Chrome 133 **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. - [x] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: After I add an external link, it should retrieve the available models from the current link. An error popup or warning should be displayed if retrieval fails. ## Actual Behavior: The service crashed when I added an invalid link and failed to retrieve the model. ## Description **Bug Summary:** [Provide a brief but clear summary of the bug] ## Reproduction Details **Steps to Reproduce:** [Outline the steps to reproduce the bug. Be as detailed as possible.] ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** [Include relevant Docker container logs, if applicable] **Screenshots/Screen Recordings (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## 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

@rgaricano commented on GitHub (Feb 24, 2025):

Please, give some more info for reproduce it.

@rgaricano commented on GitHub (Feb 24, 2025): Please, give some more info for reproduce it.
Author
Owner

@glimpse-0201 commented on GitHub (Feb 25, 2025):

admin panel -> settings -> connections -> add connection -> Adding a correct address and entering an invalid API key will cause a crash because the response is not fault-tolerant and errors are not thrown.

@glimpse-0201 commented on GitHub (Feb 25, 2025): admin panel -> settings -> connections -> add connection -> Adding a correct address and entering an invalid API key will cause a crash because the response is not fault-tolerant and errors are not thrown.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4091