#Browserless v2 template not working with Python API using Playwright

23 messages · Page 1 of 1 (latest)

restive zealot
#

Project id: 5fb3ff68-9934-45f5-9809-420c7458cc70

I've got the setup show in the screenshot where I've:

  1. created a service using https://github.com/brody192/playwright-example-python
  2. added another service that uses the Browserless v2 template (https://railway.app/template/0jqemX)
  3. added the required env variable BROWSER_PLAYWRIGHT_ENDPOINT=${{Browserless.BROWSER_PLAYWRIGHT_ENDPOINT}}

However, I keep getting an error saying: playwright._impl._errors.Error: WebSocket error: wss://browserless-production-4d3a.up.railway.app/playwright 404 Not Found

Any help would be much appreciated! Thanks!

GitHub

Contribute to brody192/playwright-example-python development by creating an account on GitHub.

red crescentBOT
#

Project ID: 5fb3ff68-9934-45f5-9809-420c7458cc70

sly onyx
#

my apologies, i had the BROWSER_PLAYWRIGHT_ENDPOINT variable set wrong.

fixed, please hard refresh your browser and deploy the browserless v2 template again.

restive zealot
#

Thanks @sly onyx so I should delete the browserless service and recreate it?

sly onyx
#

correct

restive zealot
#

Awesome - trying that now!

#

Still getting the same error @sly onyx 😢

sly onyx
#

okay ill deploy and see if i can repro

restive zealot
#

Thank you! Lemme know if you need any build logs etc. from my side

restive zealot
sly onyx
#

wasnt able to test this just yet as the dashboard thinks im trying to deploy an image when it should be a repo

restive zealot
#

Lemme know if I can do anything to help

sly onyx
#

team is looking into it, will circle back to this when that issue is fixed

restive zealot
#

Thank you! Any sorta ETA on when there might be any updates? (in a few days vs in a few weeks etc)

sly onyx
#

its being looked into as we speak

sly onyx
restive zealot
#

Awesome! Its all working for me now. A massive thanks to you and the team! 😄

sly onyx
#

no problem!

cedar gladeBOT
willow spindle
#

Hi Brody, just a question on browserless v2 on railway, i have deploy the service from your template and it work fine, the issue current playwright version is 1.47.0 but python only support update 1.46.0 for now. How can i control the version of playwright with the template?

sly onyx
#

You can't, you need to use the correct client version

livid pagoda
#

I am getting the 404 error now too, any idea how to fix? Just deployed the v1 template and v2 templates, no luck with either

#

tried to get playwright to run through nixpacks without browserless but that didn't work either