cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice

Home Page:https://www.chatwithgpt.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with chats on iOS

LTHred opened this issue · comments

commented

Wanted to start by saying this is a really cool project and I'm excited to see future development.

ENV Details:

  • Self hosted version running in docker
  • iOS 16.5.1, iPhone14 Pro

I'm currently running into an issue on iOS where the chat function simply does not work. It returns the "I'm having trouble connecting to OpenAI" prompt. Loading the same instance and inputing the same API key in my desktop browser works fine. Doing to same in Chrome on Android also works. Looking at the web console for iOS, I'm seeing a "RangeError". I've tried clearing browser data and creating a brand new container to no avail. Hoping this is just a simple fix. 👍

Attachments:
IMG_2F0B2A643D5A-1

Screenshot 2023-07-15 at 2 06 18 PM

Thanks for reporting this. Just to confirm, are you using the release branch of the docker image (docker pull ghcr.io/cogentapps/chat-with-gpt:release)?

commented

@cogentapps Thanks for the quick reply! I originally cloned and ran the build myself. I planned to play around with the code a little bit, but hadn't made any changes. Everything worked just fine aside from the one iOS bug. I did indeed try pulling from ghcr.io/cogentapps, but had forgot to clear out my data folder from the original (bad?) build. Once I ran the ghcr.io/cogentapps image with clean data folder, it started working in iOS.

Not sure what happened during my build as nothing was changed aside from a few GitHub build params? Feel free to close as I've confirmed this isn't effecting the ghcr.io/cogentapps image.

I see the same problem on Safari. I am running the beta branch because of arm (and I also tried a fresh data dir)

@cogentapps any reason why the release branch does not have multiarch yet?

I'm experiencing the same issue. RangeError: Maximum call stack size exceeded. when using iOS Safari 17 and MacOSX Safari 16.5.

Firefox 116.0.1 works fine on the same system.

I've tested with ghcr.io/cogentapps/chat-with-gpt:releas@sha256:c9161420b83cbf2c448cb5a0376ba6fd29337efa254eafe3f29fefe52618c833
And build from main branch, commit c75663b

I've tried debugging in Safari, but I don't know React, and everything is minified. But I've set breakpoints in src/index.txs on the line const router = createBrowserRouter([. Which is not triggered first.

It breaks when loading the React DOM library I think,

image

And when I scroll further up I see this,

image

edit:
more digging. It actually works from https://www.chatwithgpt.ai , just tested it now.

edit edit:
I've build a new version from release branch, commit 8c00bcd and now it works ¯_(ツ)_/¯ .