terry3041 / pyChatGPT

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

Cannot connect to chrome at 127.0.0.1 from chrome not reachable #81

Closed bipinkrish closed 1 year ago

bipinkrish commented 1 year ago

i am trying to run a Telegram Bot on railway.app via Docker in a headless mode

this is part of my Dockerfile

FROM ubuntu:latest
RUN apt install chromium-browser xvfb -y
CMD ["python3","xxx.py"]

i am getting error like cannot connect to chrome at 127.0.0.1:xxxxx from chrome not reachable...

logs

do i need to expose the port? also i used chromedriver_autoinstaller in my python script

import chromedriver_autoinstaller
chromedriver_autoinstaller.install()
bipinkrish commented 1 year ago

nevermind i fixed it