Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "browserless:server /: Forbidden. Behavior of "http" set, writing response and closing." running browserless in docker #4029

Open
Dominik-Reinert opened this issue May 5, 2024 · 2 comments

Comments

@Dominik-Reinert
Copy link

I added browserless as a service to my docker compose file in order for big-agi to browse websites and show e.g. previews.

When pasting a url into the input prompt, I get an error in the UI and the docker logs of the browserless service adds a single line:

2024-05-05T08:20:56.916Z browserless:server /: Forbidden. Behavior of "http" set, writing response and closing

Adding the debug logs flag does not give any more details. It just fails and I cannot find anywhere, what this error is even supposed to do.

To Reproduce

  • set up big agi
  • set up browserless
  • paste a url into the input prompt
  browserless:
    image: browserless/chrome:1-chrome-stable
    ports:
      - "9222:3000"
    env_file:
      - .env
    environment:
      - TOKEN=${BROWSERLESS_TOKEN}
      - CORS=true
      - CORS_ALLOW_METHODS=POST, GET, DELETE
      - ALLOW_GET=true
    networks:
      - big-agi-internal

Expected behavior

The preview to work or to get a meaningful error message

Screenshots

image

Desktop (please complete the following information):

  • OS: docker
  • Browser chrome
@Fer-Bar
Copy link

Fer-Bar commented May 9, 2024

I got the same error. Just waiting for updates

@Fer-Bar
Copy link

Fer-Bar commented May 9, 2024

Hey @Dominik-Reinert
Try deleting the token from your environment variables "TOKEN=${BROWSERLESS_TOKEN}", the container automatically generates one for you, doing so solved the problem for me. NOTE: I had to remount the container for the changes to take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants