Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

WebSocket connection to 'ws://127.0.0.1:3000/' failed #79

Open
SvenMeyer opened this issue Jan 8, 2020 · 0 comments
Open

WebSocket connection to 'ws://127.0.0.1:3000/' failed #79

SvenMeyer opened this issue Jan 8, 2020 · 0 comments

Comments

@SvenMeyer
Copy link

Although I git the 0x-lauch-kit package (backend + frontend) to work out of the box, whenever I try just to run the backend, it fails to accept ws connections and to retrieve price data.
The Chrome console is filled with error messages like :

browser.js:19 WebSocket connection to 'ws://127.0.0.1:3000/' failed: Error during WebSocket handshake: Unexpected response code: 404
W3CWebSocket @ browser.js:19
(anonymous) @ orders_channel_factory.js:168
(anonymous) @ orders_channel_factory.js:167
step @ orders_channel_factory.js:125
(anonymous) @ orders_channel_factory.js:55
(anonymous) @ orders_channel_factory.js:27
push../node_modules/@0x/connect/lib/src/orders_channel_factory.js.__awaiter @ orders_channel_factory.js:4
createWebSocketOrdersChannelAsync @ orders_channel_factory.js:161
(anonymous) @ sra_websocket_order_provider.js:603
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
(anonymous) @ sra_websocket_order_provider.js:69
push../node_modules/@0x/orderbook/lib/src/order_provider/sra_websocket_order_provider.js.__awaiter @ sra_websocket_order_provider.js:46
SRAWebsocketOrderProvider._createOrdersChannelAsync @ sra_websocket_order_provider.js:526
(anonymous) @ sra_websocket_order_provider.js:359
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
fulfilled @ sra_websocket_order_provider.js:49
index.js:1437 0x-launch-kit-frontend::Market::Actions Failed to get price of currency pair zrx/weth
console.<computed> @ index.js:1437
r @ backend.js:6
t.<computed> @ logdown.min.js:149
_callee2$ @ actions.ts:91
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_throw @ asyncToGenerator.js:29
logdown.min.js:149 0x-launch-kit-frontend::gas_price_estimation  {gasPriceInWei: BigNumber, estimatedTimeMs: 30000}
browser.js:19 WebSocket connection to 'ws://127.0.0.1:3000/' failed: Error during WebSocket handshake: Unexpected response code: 404
W3CWebSocket @ browser.js:19
(anonymous) @ orders_channel_factory.js:168
(anonymous) @ orders_channel_factory.js:167
step @ orders_channel_factory.js:125
(anonymous) @ orders_channel_factory.js:55
(anonymous) @ orders_channel_factory.js:27
push../node_modules/@0x/connect/lib/src/orders_channel_factory.js.__awaiter @ orders_channel_factory.js:4
createWebSocketOrdersChannelAsync @ orders_channel_factory.js:161
(anonymous) @ sra_websocket_order_provider.js:603
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
(anonymous) @ sra_websocket_order_provider.js:69
push../node_modules/@0x/orderbook/lib/src/order_provider/sra_websocket_order_provider.js.__awaiter @ sra_websocket_order_provider.js:46
SRAWebsocketOrderProvider._createOrdersChannelAsync @ sra_websocket_order_provider.js:526
(anonymous) @ sra_websocket_order_provider.js:359
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
fulfilled @ sra_websocket_order_provider.js:49
index.js:1437 0x-launch-kit-frontend::Store::Market::Actions getUserOrders: fetch orders from the relayer failed. Error: Creating websocket connection to ws://127.0.0.1:3000/
    at SRAWebsocketOrderProvider.<anonymous> (sra_websocket_order_provider.js:612)
    at step (sra_websocket_order_provider.js:167)
    at Object.throw (sra_websocket_order_provider.js:97)
    at rejected (sra_websocket_order_provider.js:57)
console.<computed> @ index.js:1437
r @ backend.js:6
t.<computed> @ logdown.min.js:149
_callee2$ @ actions.ts:104
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_throw @ asyncToGenerator.js:29
browser.js:19 WebSocket connection to 'ws://127.0.0.1:3000/' failed: Error during WebSocket handshake: Unexpected response code: 404
W3CWebSocket @ browser.js:19
(anonymous) @ orders_channel_factory.js:168
(anonymous) @ orders_channel_factory.js:167
step @ orders_channel_factory.js:125
(anonymous) @ orders_channel_factory.js:55
(anonymous) @ orders_channel_factory.js:27
push../node_modules/@0x/connect/lib/src/orders_channel_factory.js.__awaiter @ orders_channel_factory.js:4
createWebSocketOrdersChannelAsync @ orders_channel_factory.js:161
(anonymous) @ sra_websocket_order_provider.js:603
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
(anonymous) @ sra_websocket_order_provider.js:69
push../node_modules/@0x/orderbook/lib/src/order_provider/sra_websocket_order_provider.js.__awaiter @ sra_websocket_order_provider.js:46
SRAWebsocketOrderProvider._createOrdersChannelAsync @ sra_websocket_order_provider.js:526
(anonymous) @ sra_websocket_order_provider.js:359
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
fulfilled @ sra_websocket_order_provider.js:49
index.js:1437 0x-launch-kit-frontend::Store::Market::Actions getAllOrders: fetch orders from the relayer failed. Error: Creating websocket connection to ws://127.0.0.1:3000/
    at SRAWebsocketOrderProvider.<anonymous> (sra_websocket_order_provider.js:612)
    at step (sra_websocket_order_provider.js:167)
    at Object.throw (sra_websocket_order_provider.js:97)
    at rejected (sra_websocket_order_provider.js:57)
console.<computed> @ index.js:1437
r @ backend.js:6
t.<computed> @ logdown.min.js:149
_callee$ @ actions.ts:83
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_throw @ asyncToGenerator.js:29
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:66
(anonymous) @ index.js:8
dispatch @ redux.js:613
_callee7$ @ actions.ts:300
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:298
(anonymous) @ index.js:8
dispatch @ redux.js:613
_callee3$ @ actions.ts:54
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:45
(anonymous) @ index.js:8
dispatch @ redux.js:613
_callee$ @ actions.ts:31
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:20
(anonymous) @ index.js:8
onUpdateStore @ app.tsx:103
_callee2$ @ app.tsx:66
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
Show 14 more frames
logdown.min.js:149 0x-launch-kit-frontend::gas_price_estimation  {gasPriceInWei: BigNumber, estimatedTimeMs: 30000}
browser.js:19 WebSocket connection to 'ws://127.0.0.1:3000/' failed: Error during WebSocket handshake: Unexpected response code: 404
W3CWebSocket @ browser.js:19
(anonymous) @ orders_channel_factory.js:168
(anonymous) @ orders_channel_factory.js:167
step @ orders_channel_factory.js:125
(anonymous) @ orders_channel_factory.js:55
(anonymous) @ orders_channel_factory.js:27
push../node_modules/@0x/connect/lib/src/orders_channel_factory.js.__awaiter @ orders_channel_factory.js:4
createWebSocketOrdersChannelAsync @ orders_channel_factory.js:161
(anonymous) @ sra_websocket_order_provider.js:603
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
(anonymous) @ sra_websocket_order_provider.js:69
push../node_modules/@0x/orderbook/lib/src/order_provider/sra_websocket_order_provider.js.__awaiter @ sra_websocket_order_provider.js:46
SRAWebsocketOrderProvider._createOrdersChannelAsync @ sra_websocket_order_provider.js:526
(anonymous) @ sra_websocket_order_provider.js:359
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
fulfilled @ sra_websocket_order_provider.js:49
index.js:1437 0x-launch-kit-frontend::Store::Market::Actions getUserOrders: fetch orders from the relayer failed. Error: Creating websocket connection to ws://127.0.0.1:3000/
    at SRAWebsocketOrderProvider.<anonymous> (sra_websocket_order_provider.js:612)
    at step (sra_websocket_order_provider.js:167)
    at Object.throw (sra_websocket_order_provider.js:97)
    at rejected (sra_websocket_order_provider.js:57)
console.<computed> @ index.js:1437
r @ backend.js:6
t.<computed> @ logdown.min.js:149
_callee2$ @ actions.ts:104
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_throw @ asyncToGenerator.js:29
logdown.min.js:149 0x-launch-kit-frontend::gas_price_estimation  {gasPriceInWei: BigNumber, estimatedTimeMs: 30000}
browser.js:19 WebSocket connection to 'ws://127.0.0.1:3000/' failed: Error during WebSocket handshake: Unexpected response code: 404
W3CWebSocket @ browser.js:19
(anonymous) @ orders_channel_factory.js:168
(anonymous) @ orders_channel_factory.js:167
step @ orders_channel_factory.js:125
(anonymous) @ orders_channel_factory.js:55
(anonymous) @ orders_channel_factory.js:27
push../node_modules/@0x/connect/lib/src/orders_channel_factory.js.__awaiter @ orders_channel_factory.js:4
createWebSocketOrdersChannelAsync @ orders_channel_factory.js:161
(anonymous) @ sra_websocket_order_provider.js:603
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
(anonymous) @ sra_websocket_order_provider.js:69
push../node_modules/@0x/orderbook/lib/src/order_provider/sra_websocket_order_provider.js.__awaiter @ sra_websocket_order_provider.js:46
SRAWebsocketOrderProvider._createOrdersChannelAsync @ sra_websocket_order_provider.js:526
(anonymous) @ sra_websocket_order_provider.js:359
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
fulfilled @ sra_websocket_order_provider.js:49
index.js:1437 0x-launch-kit-frontend::Market::Actions Failed to get price of currency pair mkr/weth
console.<computed> @ index.js:1437
r @ backend.js:6
t.<computed> @ logdown.min.js:149
_callee2$ @ actions.ts:91
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_throw @ asyncToGenerator.js:29
browser.js:19 WebSocket connection to 'ws://127.0.0.1:3000/' failed: Error during WebSocket handshake: Unexpected response code: 404
W3CWebSocket @ browser.js:19
(anonymous) @ orders_channel_factory.js:168
(anonymous) @ orders_channel_factory.js:167
step @ orders_channel_factory.js:125
(anonymous) @ orders_channel_factory.js:55
(anonymous) @ orders_channel_factory.js:27
push../node_modules/@0x/connect/lib/src/orders_channel_factory.js.__awaiter @ orders_channel_factory.js:4
createWebSocketOrdersChannelAsync @ orders_channel_factory.js:161
(anonymous) @ sra_websocket_order_provider.js:603
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
(anonymous) @ sra_websocket_order_provider.js:69
push../node_modules/@0x/orderbook/lib/src/order_provider/sra_websocket_order_provider.js.__awaiter @ sra_websocket_order_provider.js:46
SRAWebsocketOrderProvider._createOrdersChannelAsync @ sra_websocket_order_provider.js:526
(anonymous) @ sra_websocket_order_provider.js:359
step @ sra_websocket_order_provider.js:167
(anonymous) @ sra_websocket_order_provider.js:97
fulfilled @ sra_websocket_order_provider.js:49
index.js:1437 0x-launch-kit-frontend::Market::Actions Failed to get price of currency pair feo1/weth
console.<computed> @ index.js:1437
r @ backend.js:6
t.<computed> @ logdown.min.js:149
_callee2$ @ actions.ts:91
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_throw @ asyncToGenerator.js:29
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:79
_callee3$ @ actions.ts:74
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:74
(anonymous) @ index.js:8
dispatch @ redux.js:613
_callee3$ @ actions.ts:45
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:45
(anonymous) @ index.js:8
dispatch @ redux.js:613
_callee$ @ actions.ts:31
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ actions.ts:20
(anonymous) @ index.js:8
onUpdateStore @ app.tsx:103
_callee2$ @ app.tsx:66
tryCatch @ runtime.js:45
invoke @ runtime.js:264
prototype.<computed> @ runtime.js:98
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
Show 12 more frames
browser.js:19 WebSocket connection to 'ws://127.0.0.1:3000/' failed: Error during WebSocket handshake: Unexpected response code: 404
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant