mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-02 06:46:55 -05:00
[GH-ISSUE #15294] issue: SyntaxError: The string did not match the expected pattern #33052
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bharath21mob on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15294
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.15
Ollama Version (if applicable)
No response
Operating System
iOS
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
I am using Open-WebUI along with CapacitorJS to load the HTML pages statically and change the backend API. With this approach I am able to fetch chats, model, do authentication etc.,
Now, when I send a message I should get a streamed response
Actual Behavior
I am not getting the streamed response. Instead I get the following error
SyntaxError: The string did not match the expected patternSteps to Reproduce
Clone open-webui repository.
Create a new directory for your project
mkdir openwebui-mobile
cd openwebui-mobile
Initialize a new npm project
npm init -y
Install Capacitor CLI
npm install -D @capacitor/cli @capacitor/core
Initialize Capacitor
npx cap init
{ "appId": "com.yourcompany.openwebuimobile", "appName": "OpenWebUI Mobile", "webDir": "src", "server": { "androidScheme": "https" }, "plugins": { "SplashScreen": { "launchShowDuration": 2000, "backgroundColor": "#ffffff", "showSpinner": false } } }Add iOS platform
npx cap add ios
Add Android platform
npx cap add android
Install additional plugins for better mobile experience
npm install @capacitor/app @capacitor/splash-screen @capacitor/status-bar
`(function() {
const BACKEND_URL = 'https://opeai.bharath.xyz';
const WS_URL = 'wss://opeai.bharath.xyz';
})();`
Logs & Screenshots
Additional Information
No response
@tjbck commented on GitHub (Jun 25, 2025):
Outside of the scope.