Open lvyandev opened 1 year ago
Hey! Would you mind downloading the source code and compiling it in debug mdoe to see the error logs?
Sure, I will give it a try later this evening.
strange thing is that debug runs well while release v1.1.1
goes wrong.
all I got on the console is just
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Operation timed out
#0 IOClient.send (package:http/src/io_client.dart:96:7)
<asynchronous suspension>
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)
<asynchronous suspension>
#2 _withClient (package:http/http.dart:166:12)
<asynchronous suspension>
#3 UpdaterService.downloadRelease (package:sidekick/src/modules/updater/updater.service.dart:56:17)
<asynchronous suspension>
#4 UpdaterStateNotifier.download (package:sidekick/src/modules/updater/updater.provider.dart:35:13)
<asynchronous suspension>
#5 UpdaterStateNotifier.checkLatest (package:sidekick/src/modules/updater/updater.provider.dart:29:7)
<asynchronous suspension>
I've also tried build the application, still the same situation with v1.1.1. It only works well when runs by project.
It also happens on another device today, a MacBookPro M1. While the app behaved normally before.
same error
Are you getting the same debug message, @wangdean?
I think this may be related to the network situation. It has been working fine for me recently.
May be related to https://github.com/fluttertools/sidekick/issues/304?
It's possible, but I'm not entirely sure.
Do you normally need a proxy?
yes, I'm in China, we have trouble connecting Github or pub.dev directly.
I suspect that is the cause, then!
I'll change this issue to make the update service not halt the rest of the app, but unfortunately, the root issue is a known Flutter bug, which causes it to ignore Proxy settings.
@lvyandev @wangdean I think it's a network issue. @aguilaair Sidekick doesn't seem to change the user's proxy settings, so I don't think it has anything to do with Sidekick
I agree that the proxy issue might be causing this problem.