Browserless v2 template not working with Python API using Playwright

plannaHOBBY

10 months 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](browserless-production-4d3a.up.railway.app/playwright) 404 Not Found

Any help would be much appreciated! Thanks!

0 Replies

10 months 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.


plannaHOBBY

10 months ago

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


10 months ago

correct


plannaHOBBY

10 months ago

Awesome - trying that now!


plannaHOBBY

10 months ago

Still getting the same error @Brody 😢

1270515383438413800


10 months ago

okay ill deploy and see if i can repro


plannaHOBBY

10 months ago

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


plannaHOBBY

10 months ago

Heres the deployment logs for my service btw

1270525593917587526


10 months ago

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


plannaHOBBY

10 months ago

Lemme know if I can do anything to help


10 months ago

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


plannaHOBBY

10 months ago

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


10 months ago

its being looked into as we speak


10 months 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,


plannaHOBBY

10 months ago

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


10 months ago

no problem!


vincentalokaHOBBY

9 months 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?


9 months ago

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


mrturckPRO

9 months 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


mrturckPRO

9 months ago

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


9 months ago

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