Skip to content

jsonwire-grid fails to provide session ID #37

Closed
@jg-repos

Description

@jg-repos

I've followed your How-To guide using the config-local-sample.json configuration file. The grid boots up correctly, and the selenium jar is able to register a node; however, client never receives any session id from the grid when submitting the following POST.

curl -X POST http://127.0.0.1:4444/wd/hub/session -d '{"desiredCapabilities":{"browserName": "firefox"}}'

Instead the grid crashes with the following output

time="2019-05-01T21:14:31Z" level=error msg="Panic: net/http: abort Handler\ngoroutine 50 [running]:\nruntime/debug.Stack(0xc000531758, 0x12fe800, 0xc000030d10)\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0xa7\ngithub.com/qa-dev/jsonwire-grid/middleware.(*Wrap).Do.func1.1(0xc0003e8940)\n\t/go/src/github.com/qa-dev/jsonwire-grid/middleware/wrap.go:32 +0x60\npanic(0x12fe800, 0xc000030d10)\n\t/usr/local/go/src/runtime/panic.go:513 +0x1b9\nnet/http/httputil.(*ReverseProxy).ServeHTTP(0xc00011a230, 0x1611a00, 0xc000172c30, 0xc0001c0100)\n\t/usr/local/go/src/net/http/httputil/reverseproxy.go:284 +0x1058\ngithub.com/qa-dev/jsonwire-grid/handlers.(*CreateSession).tryCreateSession(0xc0003e89c0, 0xc0001c0100, 0xc000345bb8, 0x13, 0xc0001f4088, 0x1)\n\t/go/src/github.com/qa-dev/jsonwire-grid/handlers/createSession.go:92 +0x396\ngithub.com/qa-dev/jsonwire-grid/handlers.(*CreateSession).ServeHTTP(0xc0003e89c0, 0x1617940, 0xc000240000, 0xc0001c0100)\n\t/go/src/github.com/qa-dev/jsonwire-grid/handlers/createSession.go:60 +0x3e1\ngithub.com/qa-dev/jsonwire-grid/middleware.(*Wrap).Do.func1(0x1617940, 0xc000240000, 0xc0001c0100)\n\t/go/src/github.com/qa-dev/jsonwire-grid/middleware/wrap.go:36 +0x8a\nnet/http.HandlerFunc.ServeHTTP(0xc0003e89e0, 0x1617940, 0xc000240000, 0xc0001c0100)\n\t/usr/local/go/src/net/http/server.go:1964 +0x44\nnet/http.(*ServeMux).ServeHTTP(0x21a2760, 0x1617940, 0xc000240000, 0xc0001c0100)\n\t/usr/local/go/src/net/http/server.go:2361 +0x127\nnet/http.serverHandler.ServeHTTP(0xc00049fa00, 0x1617940, 0xc000240000, 0xc0001c0100)\n\t/usr/local/go/src/net/http/server.go:2741 +0xab\nnet/http.(*conn).serve(0xc0002f0dc0, 0x1618d80, 0xc000072140)\n\t/usr/local/go/src/net/http/server.go:1847 +0x646\ncreated by net/http.(*Server).Serve\n\t/usr/local/go/src/net/http/server.go:2851 +0x2f5\n" component=middlewareWrap

I'm eager to use your application, but I'm unfamiliar with go, so I'm unable to help fix this error. Can you please look into this error?

Note:
I used the Dockerfile provided with the repository to install/run jsonwire-grid

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions