enricoros / big-AGI

Generative AI suite powered by state-of-the-art models and providing advanced AI/AGI functions. It features AI personas, AGI functions, multi-model chats, text-to-image, voice, response streaming, code highlighting and execution, PDF import, presets for developers, much more. Deploy on-prem or in the cloud.
https://big-agi.com
MIT License
5.61k stars 1.3k forks source link

[BUG] BRowserless troubleshooting #658

Open alkampfergit opened 1 month ago

alkampfergit commented 1 month ago

Description

I've configured browserless in container as for documentation, navigating to page in port 9222 correctly show browserless in action, it works perfectly, but when I try to use the /browse command I always got

Issue: browse did not produce an answer (error: connect ECONNREFUSED 127.0.0.1:9222).

But I have really no clue on what happened.. maybe some better error would help troubleshoot the problem

Device and browser

Edge on windows.

Screenshots and more

No response

Willingness to Contribute

BlaZerStarZ commented 1 month ago

When you run your docker instance: -click on browserless in your running container

-You should see the console log records.

-Scroll down until you see these lines

2024-10-18 11:58:27 2024-10-18T16:58:27.009Z browserless:server 2024-10-18 11:58:27 2024-10-18 11:58:27 Running on port 3000 2024-10-18 11:58:27 Localhost ws:localhost:3000 2024-10-18 11:58:27 Local network ws:172.XX.0.XX:3000

Where I placed XX you will see numbers unique to your computer config.

CTRL-C Copy the WS: #

Go into Big-Agi settings and click on tools

Paste the [WS#:] Ex. (ws://172.XX.0.XX:3000) in the Puppeteer Wss box.

Now test it and see if it works.

If not, then open .env file in Big-Agi directory and set both proxy IP numbers to match your IP numbers you cut and pasted. Remove the WS: EX. https_proxy=172.XX.0.XX:3000 http_proxy=172.XX.0.XX:3000

Then go to docker and stop all Big-Agi instances. Delete everything Big-Agi from Docker. Then on the command line in the Big-Agi directory enter: docker-compose up

You should be up and running.

Hope this helps.

enricoros commented 1 month ago

Thanks for providing support @BlaZerStarZ