Skip to content

NodeJS demo fails #38

@dockter-84

Description

@dockter-84

When following the instruction on https://github.com/jupyter/kernel_gateway_demos/blob/master/node_client_example/README.md, the following error is returned:

$  docker-compose up
Creating network "nodeclientexample_default" with the default driver
Creating nodeclientexample_kernel_gateway_1
Creating nodeclientexample_nginx_1
Creating nodeclientexample_client_1
Attaching to nodeclientexample_kernel_gateway_1, nodeclientexample_nginx_1, nodeclientexample_client_1
client_1          | Targeting server: http://nginx/jupyter/v1/12345678-1234-1234-1234-123456789012
client_1          | Using example code: example.py
client_1          | ajaxSettings:  { user: 'fakeuser', password: 'fakepass' }
nginx_1           | 2016/10/19 13:46:50 [error] 12#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.4, server: kernel_gateway, request: "GET /jupyter/v1/12345678-1234-1234-1234-123456789012/api/kernelspecs?1476884810574 HTTP/1.1", upstream: "http://172.18.0.2:8888/api/kernelspecs?1476884810574", host: "nginx"
nginx_1           | 172.18.0.4 - fakeuser [19/Oct/2016:13:46:50 +0000] "GET /jupyter/v1/12345678-1234-1234-1234-123456789012/api/kernelspecs?1476884810574 HTTP/1.1" 502 172 "-" "node-XMLHttpRequest"
client_1          | Error fetching kernel specs: null
nodeclientexample_client_1 exited with code 1
kernel_gateway_1  | [KernelGatewayApp] The Jupyter Kernel Gateway is running at: http://0.0.0.0:8888

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