Skip to content

Web client wrongly attempts to reconnect to certain saved servers using insecure websockets on start, leading to error #139

@seisatsu

Description

@seisatsu

The web client gives an error "The operation is insecure" and fails to automatically rejoin the Ergo Test Network server upon refreshing under the following circumstances:

  1. Ergo Test Server was previously joined.
  2. The page has since been refreshed.

Other servers in the sidebar will reconnect automatically upon rejoin. In addition, going back to the home page and manually joining Ergo again works. However, as long as Ergo Test Network is in the saved servers list in the sidebar, the error "The operation is insecure" (on Firefox specifically, but a similar error shows in Edge) will show in the connection dialog for all servers. Removing Ergo Test Network from the sidebar and refreshing removes the error.

In addition, the Firefox Developer Console shows the following errors:

  • Failed to reconnect to server ws://testnet.ergo.chat:8097 DOMException: The operation is insecure.
  • Uncaught (in promise) DOMException: The operation is insecure.

It appears that ObsidianIRC is mistakenly trying to connect to the Ergo Test Network using insecure websockets, even though this is a secure port. It is strange that this doesn't happen with other servers I tested in the welcome list.

I also tried running my own Ergo server and pointing the client to my own servers.json to connect, and I had the exact same symptoms.

See below attached screenshot from the obsidianirc.github.io client.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions