issue: functions stores Quotation error #6836

Closed
opened 2025-11-11 17:06:59 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @dengqizhang on GitHub (Nov 5, 2025).

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.6.34

Ollama Version (if applicable)

No response

Operating System

windows10

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using 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 every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

		{#if _functions.length}
							<button
								class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition"
								on:click={async () => {
									const _functions = await exportFunctions(localStorage.token).catch((error) => {
										toast.error(`${error}`);
										return null;
									});

									if (_functions) {
										let blob = new Blob([JSON.stringify(_functions)], {
											type: 'application/json'
										});
										saveAs(blob, `functions-export-${Date.now()}.json`);
									}
								}}
							>
								<div class=" self-center font-medium line-clamp-1">
									{$i18n.t('Export')}
								</div>
							</button>
						{/if}

Actual Behavior

		{#if functions.length}
							<button
								class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition"
								on:click={async () => {
									const _functions = await exportFunctions(localStorage.token).catch((error) => {
										toast.error(`${error}`);
										return null;
									});

									if (_functions) {
										let blob = new Blob([JSON.stringify(_functions)], {
											type: 'application/json'
										});
										saveAs(blob, `functions-export-${Date.now()}.json`);
									}
								}}
							>
								<div class=" self-center font-medium line-clamp-1">
									{$i18n.t('Export')}
								</div>
							</button>
						{/if}

Steps to Reproduce

1,update openwebui v0.6.34 version
2, Functions.svelte:300

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'length')

4, update

{#if functions.length}

become
{#if _functions.length}

5,Resolve the error message

Logs & Screenshots

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'length')

Additional Information

No response

Originally created by @dengqizhang on GitHub (Nov 5, 2025). ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.6.34 ### Ollama Version (if applicable) _No response_ ### Operating System windows10 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior {#if _functions.length} <button class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition" on:click={async () => { const _functions = await exportFunctions(localStorage.token).catch((error) => { toast.error(`${error}`); return null; }); if (_functions) { let blob = new Blob([JSON.stringify(_functions)], { type: 'application/json' }); saveAs(blob, `functions-export-${Date.now()}.json`); } }} > <div class=" self-center font-medium line-clamp-1"> {$i18n.t('Export')} </div> </button> {/if} ### Actual Behavior {#if functions.length} <button class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition" on:click={async () => { const _functions = await exportFunctions(localStorage.token).catch((error) => { toast.error(`${error}`); return null; }); if (_functions) { let blob = new Blob([JSON.stringify(_functions)], { type: 'application/json' }); saveAs(blob, `functions-export-${Date.now()}.json`); } }} > <div class=" self-center font-medium line-clamp-1"> {$i18n.t('Export')} </div> </button> {/if} ### Steps to Reproduce 1,update openwebui v0.6.34 version 2, Functions.svelte:300 ``` Uncaught (in promise) TypeError: Cannot read properties of null (reading 'length') ``` 4, update ``` {#if functions.length} ``` become {#if _functions.length} 5,Resolve the error message ### Logs & Screenshots Uncaught (in promise) TypeError: Cannot read properties of null (reading 'length') ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 17:06:59 -06:00
Author
Owner

@silentoplayz commented on GitHub (Nov 5, 2025):

A PR is welcome!

@silentoplayz commented on GitHub (Nov 5, 2025): A PR is welcome!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6836