ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

WebDriver: Second session hangs

Open JRaspass opened this issue 1 year ago • 1 comments

$ ./Meta/ladybird.sh run WebDriver
...
Listening on 0.0.0.0:8000

First request works fine, opens the window and receives a session ID of 0:

$ curl -d '{"capabilities":{}}' http://127.0.0.1:8000/session
{"value":{"sessionId":"0","capabilities":{"browserName":"ladybird","browserVersion":"1.0","platformName":"linux","acceptInsecureCerts":false,"strictFileInteractability":false,"setWindowRect":true,"serenity:ladybird":{"headless":false},"pageLoadStrategy":"normal","timeouts":{"script":30000,"pageLoad":300000,"implicit":0},"unhandledPromptBehavior":"dismiss and notify"}}}

Second request opens a new tab but never gets a response:

$ curl -d '{"capabilities":{}}' http://127.0.0.1:8000/session
...hangs...

Deleting the existing session either before or after the second POST works in that it gets a response but doesn't prevent future hangs:

$ curl -XDELETE http://127.0.0.1:8000/session/0
{"value":null}

JRaspass avatar Jun 13 '24 12:06 JRaspass

This is no longer reproducible (on add380d6e2). I recommend closing (fixed) cc @ADKaster .

$ curl -d '{"capabilities":{}}' http://127.0.0.1:8000/session
{"value":{"sessionId":"5b258425-c3dd-4f03-8355-a1f7a2040d69","capabilities":{"browserName":"ladybird","browserVersion":"1.0","platformName":"linux","acceptInsecureCerts":false,"setWindowRect":true,"userAgent":"Mozilla/5.0 (Linux; x86_64) Ladybird/1.0","strictFileInteractability":false,"ladybird:headless":false,"proxy":{},"unhandledPromptBehavior":"dismiss and notify","pageLoadStrategy":"normal","timeouts":{"script":30000,"pageLoad":300000,"implicit":0}}}}
$ curl -d '{"capabilities":{}}' http://127.0.0.1:8000/session
{"value":{"error":"session not created","message":"There is already an active HTTP session","stacktrace":""}}

manuel-za avatar Mar 23 '25 12:03 manuel-za

LGTM

JRaspass avatar Mar 23 '25 19:03 JRaspass