Open
Description
Sometimes when running dart pub get
, I get this crash:
build-collection-1.18.0: SocketException: Connection failed (OS Error: No route to host, errno = 65), address = www.google-analytics.com, port = 443
build-collection-1.18.0: #0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:721:35)
build-collection-1.18.0: #1 _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1914:26)
build-collection-1.18.0: #2 RawSocket.startConnect (dart:io-patch/socket_patch.dart:27:23)
build-collection-1.18.0: #3 RawSecureSocket.startConnect (dart:io/secure_socket.dart:299:22)
build-collection-1.18.0: #4 SecureSocket.startConnect (dart:io/secure_socket.dart:77:28)
build-collection-1.18.0: #5 _ConnectionTarget.connect (dart:_http/http_impl.dart:2483:26)
build-collection-1.18.0: #6 _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2926:12)
build-collection-1.18.0: #7 _HttpClient._getConnection (dart:_http/http_impl.dart:2931:12)
build-collection-1.18.0: #8 _HttpClient._openUrl (dart:_http/http_impl.dart:2786:12)
build-collection-1.18.0: #9 _HttpClient.openUrl (dart:_http/http_impl.dart:2623:7)
build-collection-1.18.0: #10 IOClient.send (package:http/src/io_client.dart:88:38)
build-collection-1.18.0: #11 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:38)
build-collection-1.18.0: #12 BaseClient.post (package:http/src/base_client.dart:32:7)
build-collection-1.18.0: #13 GAClient.sendData (package:unified_analytics/src/ga_client.dart:66:28)
build-collection-1.18.0: #14 AnalyticsImpl.send (package:unified_analytics/src/analytics.dart:610:38)
build-collection-1.18.0: #15 DartdevRunner.runCommand (package:dartdev/dartdev.dart:255:26)
build-collection-1.18.0: <asynchronous suspension>
build-collection-1.18.0: #16 runDartdev (package:dartdev/dartdev.dart:57:16)
build-collection-1.18.0: <asynchronous suspension>
build-collection-1.18.0: #17 main (file:///Volumes/Work/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart:11:3)
build-collection-1.18.0: <asynchronous suspension>.
Unhandled exception:
SubprocessException[command: "dart pub get", workingDirectory: "/var/folders/gd/9q4y0d095wq9mgmq1wtx8w_w005w15/T/collectionIFMRHi", exitCode: 255]
The prefix, build-collection-1.18.0
and the last line, are logging from dartdoc.
I imagine dartdev
could try to catch this exception, but maybe unified_analytics
should be catching it? If the former, let me know and I can move this bug over to dartdev
.