chat-with-gpt icon indicating copy to clipboard operation
chat-with-gpt copied to clipboard

Issue with chats on iOS

Open LTHred opened this issue 1 year ago • 6 comments

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

LTHred avatar Jul 15 '23 19:07 LTHred

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

cogentapps avatar Jul 15 '23 22:07 cogentapps

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

LTHred avatar Jul 15 '23 23:07 LTHred

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 avatar Jul 31 '23 21:07 schmidp

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

schmidp avatar Aug 08 '23 07:08 schmidp

Screenshot 2023-08-08 at 10 06 11

schmidp avatar Aug 08 '23 08:08 schmidp

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 ¯_(ツ)_/¯ .

jonasbg avatar Sep 13 '23 17:09 jonasbg