vishalxl / nostr_console

Nostr console is an open-source twitter-like social network, direct chat app and group chat all bundled into one program. Built on the decentralized Nostr protocol.
GNU Affero General Public License v3.0
439 stars 33 forks source link

Unhandled exception #77

Closed umop3plsdn closed 5 months ago

umop3plsdn commented 1 year ago

it's actually printing out 18 global threads but immediately dies right after saying either Unhandled exception: HandshakeException: Connection terminated during handshake or Unhandled exception: HttpException: Connection closed before full header was received, uri = https://relay.damus.io:0

umop3plsdn commented 1 year ago

I also get: Could not find your contact list. Waiting for feed to come in..............Unhandled exception: WebSocketException: Connection to 'https://nostr.bitcoiner.social:0#' was not upgraded to websocket

0 _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1011:41)

1 WebSocket.connect (dart:_http/websocket.dart:320:22)

2 new IOWebSocketChannel.connect (package:web_socket_channel/io.dart:80:28)

3 Relays.sendRequest (package:nostr_console/relays.dart:166:56)

4 Relays.getMultiUserEvents (package:nostr_console/relays.dart:142:5)

5 getMultiUserEvents (package:nostr_console/relays.dart:295:14)

6 main. (file:///home/da5id/repos/nostr_console/bin/nostr_console.dart:389:9)

7 new Future.delayed. (dart:async/future.dart:424:39)

8 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)

9 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)

10 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)

11 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)

glasgowm148 commented 1 year ago

Same issue on OSX

gzuuus commented 1 year ago

Same in ubuntu since the last release

twofaktor commented 1 year ago

Same issue on Raspbian OS lite arm64:

Waiting for feed to come in..............Unhandled exception:
WebSocketException: Connection to 'https://nostr-relay.trustbtc.org:0#' was not upgraded to websocket
#0      _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1011)
#1      WebSocket.connect (dart:_http/websocket.dart:320)
#2      new IOWebSocketChannel.connect (package:web_socket_channel/io.dart:80)
#3      Relays.sendRequest (package:nostr_console/relays.dart:166)
#4      Relays.getMultiUserEvents (package:nostr_console/relays.dart:142)
#5      getMultiUserEvents (package:nostr_console/relays.dart:295)
#6      main.<anonymous closure> (file:///work/bin/nostr_console.dart:389)
#7      new Future.delayed.<anonymous closure> (dart:async/future.dart:424)
#8      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18)
#9      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398)
#10     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429)
#11     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192)
vishalxl commented 1 year ago

I have made some progress in fixing this: have actually googled the error and landed here hah. Hope to fix it soon.

vishalxl commented 5 months ago

This is not seen in latest build.