Potentially unhandled rejection [5] ObjectUnsubscribedError

#1

Apologise in advance at this is possibly going to be hard to describe. I’m doing some testing in Node trying to build in some resilience to our connections. The result is that I can automatically reestablish procedure registrations and subscriptions in the event Crossbar goes down for a while.

So, I have a demo app which I run. I then stop and start Crossbar and watch everything reconnect. Here’s the output which should give you an idea of what’s going on:

$ node dist/bin/demo.js

! Opening connection

Connection OPENED. id: 5833023834600842

  • on-subscribe: wamp.session.on_join 4874094216540676

**** “hello” registered with id “5265204074920362”

**** “goodbye” registered with id “2093189772708438”

REGISTRATION ERROR { error: ‘wamp.error.procedure_already_exists’,

args: [ ‘register for already registered procedure ‘hello’’ ],

kwargs: {} }

= Registration list =

···

=====================

= hello 5265204074920362

= goodbye 2093189772708438

=====================

=====================

Connection CLOSED null

Connection CLOSED null

Connection CLOSED null

Connection OPENED. id: 5312598807335454

  • on-subscribe: wamp.session.on_join 7009374994121737

= Registration list =

=====================

= hello 7323175003400024

= goodbye 4571869401481117

=====================

=====================

Potentially unhandled rejection [5] ObjectUnsubscribedError

Potentially unhandled rejection [6] ObjectUnsubscribedError

Potentially unhandled rejection [7] ObjectUnsubscribedError

Ok. You can see I register 2 end-points, I’m testing an error condition by trying to re-register one them and I’m subscribing to on_join.

You can then see I’m stopping Crossbar and then immediately starting it. The onclose event reports 3 times.

Crossbar starts and there is a reconnection. What I don’t understand are the three last lines that Autobahn is reporting.

Any idea what’s causing this and is this serious or benign?

Thanks in advance.

Regards,

Andrew Eddie

0 Likes