Skip to content

websocket connect error #348

@ZhangSanMo

Description

@ZhangSanMo

What version of HAPI is running?

hapi version: 0.16.2

What platform is your computer?

windows x64

What issue are you seeing?

index-CPLffQ_y.js:217 WebSocket connection to 'ws://localhost:3006/socket.io/?EIO=4&transport=websocket&sid=rD-wSPraHzZeQkm24pLj' failed: WebSocket is closed before the connection is established.

What steps can reproduce the bug?

config:

{
  "cliApiToken": "xxx-xxx",
  "vapidKeys": {
    "publicKey": "xxx",
    "privateKey": "xx-xx-xx"
  },
  "machineId": "xx-4706-4874-b45e-xx",
  "apiUrl": "http://localhost:3006",
  "listenHost": "localhost",
  "publicUrl": "https://localhost:3006",
  "corsOrigins": [
    "publicUrl",
    "localhost"
  ]
}

What is the expected behavior?

能正常使用terminal

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions