cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.29k stars 485 forks source link

Issue with chats on iOS #171

Open LTHred opened 11 months ago

LTHred commented 11 months ago

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

ENV Details:

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

cogentapps commented 11 months ago

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)?

LTHred commented 11 months ago

@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.

schmidp commented 11 months ago

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

schmidp commented 11 months ago

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

schmidp commented 11 months ago
Screenshot 2023-08-08 at 10 06 11
jonasbg commented 9 months ago

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 8c00bcdce39396814218040333fc96a1f66c5bb2 and now it works ¯_(ツ)_/¯ .