question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnA2commented, Jul 13, 2021

I’ve tried the pre-release. It works fine with it. Thanks!

0reactions
diemolcommented, Jul 13, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphQL | A query language for your API
A query language for your API — GraphQL provides a complete description of the data in your API, gives clients the power to...
Read more >
GraphQL - Wikipedia
GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data. ... GraphQL was...
Read more >
Explore GraphQL: The API for modern apps.
GraphQL is an open spec for a flexible API layer. Put GraphQL over your existing backends to build products faster than ever before....
Read more >
Apollo GraphQL | Supergraph: unify APIs, microservices ...
Apollo Graph Platform — unify APIs, microservices, & databases into a graph that you can query with GraphQL.
Read more >
GraphQL vs REST - A comparison
GraphQL allows you to have fine-grained insights about the data that's requested on the backend. As each client specifies exactly what information it's ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found