Browserless v2 template not working with Python API using Playwright
planna
HOBBYOP

2 years ago

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!

21 Replies

2 years ago

my apologies, i had the BROWSER_PLAYWRIGHT_ENDPOINT variable set wrong.

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


planna
HOBBYOP

2 years ago

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


2 years ago

correct


planna
HOBBYOP

2 years ago

Awesome - trying that now!


planna
HOBBYOP

2 years ago

Still getting the same error @Brody 😢

1270515383438413800


2 years ago

okay ill deploy and see if i can repro


planna
HOBBYOP

2 years ago

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


planna
HOBBYOP

2 years ago

Heres the deployment logs for my service btw

1270525593917587526


2 years ago

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


planna
HOBBYOP

2 years ago

Lemme know if I can do anything to help


2 years ago

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


planna
HOBBYOP

2 years ago

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


2 years ago

its being looked into as we speak


2 years ago

hey @Hitarth - sorry for the delay here, the issue with the dashboard has been fixed, I have updated the template again, and updated the example code.

This time i have tested and can confirm its now working,


planna
HOBBYOP

2 years ago

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


2 years ago

no problem!


vincentaloka
HOBBY

2 years ago

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?


2 years ago

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


mrturck
PRO

a year ago

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


mrturck
PRO

a year ago

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


a year ago

please open your own thread, we don't want to spam OP


Loading...