Adventure-Bot / Adventure-Bot/adventure-bot

Redux connection failure is noisy

Offen
#134 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
devx
Vorherrschende Sprache
TypeScript
Sterne
7
Forks
6
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Given this in `.env`...

```
REDUX_DEVTOOLS_ENABLED=true
```

...and given redux-devtools have not been started.

When starting `yarn dev`, the following is output:

```sh
remote-redux-devtools: Socket connection errors are being suppressed.
This can be disabled by setting suppressConnectErrors to 'false'.
Error [SocketProtocolError]: Socket hung up
at SCClientSocket._onSCClose (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\scclientsocket.js:632:15)
at SCTransport. (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\scclientsocket.js:304:12)
at SCTransport.Emitter.emit (E:\adventure-bot\adventure-bot-dev\node_modules\component-emitter\index.js:133:20)
at SCTransport._onClose (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\sctransport.js:217:28)
at WebSocket.SCTransport.wsSocket.onerror (E:\adventure-bot\adventure-bot-dev\node_modules\socketcluster-client\lib\sctransport.js:81:12)
at WebSocket.onError (E:\adventure-bot\adventure-bot-dev\node_modules\ws\lib\event-target.js:140:16)
at WebSocket.emit (node:events:390:28)
at WebSocket.emit (node:domain:475:12)
at emitErrorAndClose (E:\adventure-bot\adventure-bot-dev\node_modules\ws\lib\websocket.js:835:13)
at ClientRequest. (E:\adventure-bot\adventure-bot-dev\node_modules\ws\lib\websocket.js:697:5) {
code: 1006
}
```

Ideally this would output something a little more developer friendly e.g.

```
remotedev-server not found, to start it, run:
yarn game redux-devtools
https://github.com/Adventure-Bot/adventure-bot/blob/main/developer-guide.md#redux-devtools
```

For reference, when it loads successfully, it says

```
connected to remotedev-server
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.