🐛 Bug Report
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: "<session-id>") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
keep getting this error: “message”: “Exception while fetching data (/session) : No ongoing session found with the requested session id.“,
for sure this session id exist cause i see the id when i query the grid and i did the request the second i got the session_id from the web driver(chrome)
To Reproduce
build web driver connection get the session id by code or do
curl --location --request POST 'LINK_TO_GRAPHQL_ENDPOINT' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"query sessionsInfo {\n sessionsInfo {\n sessionQueueRequests \n sessions{\n id\n capabilities\n startTime\n uri\n nodeId\n nodeUri\n sessionDurationMillis\n slot {\n id\n stereotype\n lastStarted\n }\n }\n }\n}","variables":{}}'
replace <session-id> with the session id: curl -X POST -H “Content-Type: application/json” --data ‘{“query”:"{ session (id: “<session-id>”) { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}’ -s <LINK_TO_GRAPHQL_ENDPOINT>
Expected behavior
{
"errors": [
{
"message": "Exception while fetching data (/session) : No ongoing session found with the requested session id.",
"locations": [
{
"line": 2,
"column": 6
}
],
"path": [
"session"
],
"extensions": {
"sessionId": "'8c86cb43abffe7c0cc5ef4ec4b6ed5fd'",
"classification": "DataFetchingException"
}
}
],
"data": null
}
Environment
OS: macOS Browser: Chrome Browser version: 89.0.4389.90 Browser Driver version: 89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs Language Bindings version: Selenium Grid version (if applicable): 4.0.0-beta-3 (revision 909239cd9f)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top GitHub Comments
I’ve tried the pre-release. It works fine with it. Thanks!
This change was done after
beta-4
. We have just done a pre-release and from this link you can grab a jar to try the change if you’d like.