Skip to content

Exits on 502 response code #44

Closed
@madrobby

Description

The code should be more resilient to server errors and try to reconnect automatically and handle errors gracefully. It exited for me on a 502 error.

node_modules/node_modules/ws/lib/websocket.js:888
      abortHandshake(
      ^
Error: Unexpected server response: 502
    at ClientRequest.<anonymous> (/home/thomas/projects/twistori-feed-generator/node_modules/node_modules/ws/lib/websocket.js:888:7)
    at ClientRequest.emit (node:events:511:28)
    at ClientRequest.emit (node:domain:489:12)
    at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
    at TLSSocket.socketOnData (node:_http_client:535:22)
    at TLSSocket.emit (node:events:511:28)
    at TLSSocket.emit (node:domain:489:12)
    at addChunk (node:internal/streams/readable:332:12)
    at readableAddChunk (node:internal/streams/readable:305:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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