502 Bad Gateway error when connecting to lambdatest

I am writing my framework in playwright,java with lambdatest integration.I have just started from scratch and I was able to run a sample test locally.Then I created a tunnel and tunnel is running.But when I run tests and tried to connect to lambdatest it is thowing 502 Bad Gateway error.the error looks like below

Error connecting to LambdaTest: Error { message='WebSocket error: wss://cdp.lambdatest.com/playwright 502 Bad Gateway

502 Bad Gateway

502 Bad Gateway

name='Error stack='Error: WebSocket error: wss://cdp.lambdatest.com/playwright 502 Bad Gateway

502 Bad Gateway

502 Bad Gateway

at IncomingMessage.<anonymous> (C:\Users\rxr272\AppData\Local\Temp\1\playwright-java-4674802565610706909\package\lib\server\transport.js:81:18)
at IncomingMessage.emit (node:events:518:28)
at emitCloseNT (node:internal/streams/destroy:148:10)
at process.processTicksAndRejections (node:internal/process/task_queues:89:21)

} Call log:

    • wss://cdp.lambdatest.com/playwright
    • wss://cdp.lambdatest.com/playwright 502 Bad Gateway

Hi @rakhi.rejee

Greetings from LambdaTest Support!

We have received your support ticket regarding your inquiry here: Slack and we sent you an email as well.

Additionally, may we know if this is your first time running your framework in playwright, java with LambdaTest integration? Are you trying to integrate this on your Hyper Execute Subscription?

Please make sure that you enable your tunnel capabilities with the value set as true and declare the tunnel name. You can refer the sample capabilities here:: Automation Capabilities Generator For Selenium and Appium | LambdaTest to simulate your set up.