Skip to content

No error when client tries to connect with a non-existing ID #467

Description

@chris0203

Please, check for existing issues to avoid duplicates.

  • No similar issues found.

What happened?

When trying to connect a non-existing ID, on error has no fired.

The Peer A

this._peer = new Peer('test', {
    host: 'localhost',
    port: 9000,
    path: '/signaling',
});

The Peer B

this._peer = new Peer({
    host: 'localhost',
    port: 9000,
    path: '/signaling',
});
this.peerConnection = this._peer.connect('abc');
this.peerConnection.on('error', () => {
      console.log('ERROR');
  });

The Signal server return {"type":"EXPIRE","src":"abc","dst":"7ac5c04a-d47a-44f1-95e4-7800b1a72900"}
The on error in Peer B should catch the error, but here is nothing catch.

The similar error #127 , but not the same

peerjs version: 1.5.4
peer signal server version: 1.0.2

How can we reproduce the issue?

No response

What do you expected to happen?

The on error in Peer B should catch the error

Environment setup

  • OS: Windows 10
  • Platform: Electron 30.0.1

Is this a regression?

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions