Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unhandled exception #77

Closed
umop3plsdn opened this issue Jan 21, 2023 · 6 comments
Closed

Unhandled exception #77

umop3plsdn opened this issue Jan 21, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@umop3plsdn
Copy link

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
Copy link
Author

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)
dart-lang/http#1604 WebSocket.connect (dart:_http/websocket.dart:320:22)
dart-archive/web_socket_channel#2 new IOWebSocketChannel.connect (package:web_socket_channel/io.dart:80:28)
dart-archive/web_socket_channel#3 Relays.sendRequest (package:nostr_console/relays.dart:166:56)
dart-lang/http#1605 Relays.getMultiUserEvents (package:nostr_console/relays.dart:142:5)
dart-archive/web_socket_channel#5 getMultiUserEvents (package:nostr_console/relays.dart:295:14)
dart-archive/web_socket_channel#6 main. (file:///home/da5id/repos/nostr_console/bin/nostr_console.dart:389:9)
dart-archive/web_socket_channel#7 new Future.delayed. (dart:async/future.dart:424:39)
dart-archive/web_socket_channel#8 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)
dart-archive/web_socket_channel#9 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
dart-archive/web_socket_channel#10 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
dart-archive/web_socket_channel#11 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)

@vishalxl vishalxl added the bug Something isn't working label Jan 21, 2023
@glasgowm148
Copy link

Same issue on OSX

@gzuuus
Copy link

gzuuus commented Jan 25, 2023

Same in ubuntu since the last release

@twofaktor
Copy link

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)
dart-lang/http#1604      WebSocket.connect (dart:_http/websocket.dart:320)
dart-lang/web_socket_channel#2      new IOWebSocketChannel.connect (package:web_socket_channel/io.dart:80)
dart-lang/web_socket_channel#3      Relays.sendRequest (package:nostr_console/relays.dart:166)
dart-lang/http#1605      Relays.getMultiUserEvents (package:nostr_console/relays.dart:142)
dart-lang/web_socket_channel#5      getMultiUserEvents (package:nostr_console/relays.dart:295)
dart-lang/web_socket_channel#6      main.<anonymous closure> (file:///work/bin/nostr_console.dart:389)
dart-lang/web_socket_channel#7      new Future.delayed.<anonymous closure> (dart:async/future.dart:424)
dart-lang/web_socket_channel#8      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18)
dart-lang/web_socket_channel#9      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398)
dart-lang/web_socket_channel#10     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429)
dart-lang/web_socket_channel#11     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192)

@vishalxl
Copy link
Owner

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

vishalxl added a commit that referenced this issue Apr 26, 2023
If invalid relay/url is given , program should continue gracefully. this captures the recent fix for issue #77 .
@vishalxl
Copy link
Owner

This is not seen in latest build.

@vishalxl vishalxl reopened this Apr 21, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants