status-web icon indicating copy to clipboard operation
status-web copied to clipboard

Light Push and Filter eventually stop working

Open felicio opened this issue 1 year ago • 3 comments

What

Note: Recovery of the messages during periods of disconnect is not the main subject of this issue

~~>Note: Sufficient workaround for Relay at https://github.com/status-im/status-web/pull/288/files~~

  1. Build project
  2. Serve /dist
  3. Visit URL
  4. Set debug to * in Local Storage
  5. Reload
  6. Send messages before, during and after going Offline in Network > No throttling > Offline
  7. Send messages after (several hours) waking computer from sleeping
  8. See Light Push delivering messages but not "self emitting" to our UI
  9. See Filter no longer receiving messages
  10. See wakuDisconnectionTimer interval no longer being fired

See errors (in order) during which messaging is not working:

  1. WebSocket connection to 'wss://node-01.do-ams3.status.test.statusim.net/p2p/16Uiu2HAkukebeXjTQ9QDBeNDWuGfbaSg79wkkhK4vPocLgR6QFDf' failed:
  2. Uncaught (in promise) Error: Muxer already closed

See debug logs.

How

  • Either programmatically reload page
  • Ping Filter protocol subscriptions with a Waku message and re-subscribe if not delivered
  • Automatically resubscribe on reconnect
  • Else

Related

  • https://github.com/waku-org/js-waku/issues/751
  • https://github.com/libp2p/js-libp2p/issues/939
  • https://github.com/libp2p/js-libp2p/issues/744
  • https://github.com/xmtp/xmtp-js/pull/128
  • https://github.com/xmtp/go-waku/pull/29
  • https://github.com/vacp2p/rfc/issues/469
  • https://github.com/vacp2p/rfc/pull/562
  • https://github.com/waku-org/pm/issues/5

felicio avatar Dec 21 '22 11:12 felicio