terry3041 / pyChatGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
GNU General Public License v3.0
1.35k stars 255 forks source link

Headless request stuck on 'Starting Browser' #74

Closed zukixa closed 8 months ago

zukixa commented 1 year ago

Having had the issue as described in #62 - I've proceeded to setup an 22.04 Ubuntu Linux via Multipass shell, and have been attempting to run the code there. However, after each attempt of running it, the system seems to get stuck on 'starting browser,' even though the Mac equivalent is able to go far beyond, but hangs at requests that are generating a prompt that is 'too long.' I've done the chromium-browser installation as intended with xvfb

Mac:

image

Linux:

image

Code used:

image
terry3041 commented 1 year ago

I've proceeded to setup an 22.04 Ubuntu Linux via Multipass shell, and have been attempting to run the code there. However, after each attempt of running it, the system seems to get stuck on 'starting browser,'

I cannot reproduce this issue in a multipass shell environment. Maybe check your chrome installation in the multipass VM?

Even though the Mac equivalent is able to go far beyond, but hangs at requests that are generating a prompt that is 'too long.'

Can you send me the question you asked?

zukixa commented 1 year ago

1) Seems to be a chrome issue, chromium-browser doesn't even start in headless, and runs into a loop of "chromium not responding" if it starts with display mode -- even after an sudo apt upgrade/update?

2)

image image image
zukixa commented 8 months ago

fun to look back at this when I still sucked at coding in the end this was most likely just a "Multipass shell SUCKS" issue lol