Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Proxy issues on Sidkick prevent the app from loading #297

Open
lvyandev opened this issue Jun 27, 2023 · 13 comments
Open

Proxy issues on Sidkick prevent the app from loading #297

lvyandev opened this issue Jun 27, 2023 · 13 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@lvyandev
Copy link

[✓] Flutter (Channel stable, 3.10.5, on macOS 13.3.1 22E772610a darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.10.5 on channel stable at /Users/lvyan/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (2 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/lvyan/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/lvyan/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    ! CocoaPods 1.10.1 out of date (1.11.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart
        side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.67.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Proxy Configuration
    • HTTP_PROXY is set
    • NO_PROXY is localhost,127.0.0.1,localaddress,.localdomain.com,::1
    • NO_PROXY contains localhost
    • NO_PROXY contains 127.0.0.1
    • NO_PROXY contains ::1

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.3.1 22E772610a darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources
    • All expected network resources are available.
image image
@aguilaair
Copy link
Member

Hey! Would you mind downloading the source code and compiling it in debug mdoe to see the error logs?

@aguilaair aguilaair added bug Something isn't working MacOS platform-specific awaiting response more details Further information is requested and removed awaiting response labels Jun 27, 2023
@lvyandev
Copy link
Author

Sure, I will give it a try later this evening.

@lvyandev
Copy link
Author

lvyandev commented Jun 28, 2023

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.

@lvyandev
Copy link
Author

lvyandev commented Jul 4, 2023

It also happens on another device today, a MacBookPro M1. While the app behaved normally before.

@wangdean
Copy link

wangdean commented Dec 6, 2023

same error

@aguilaair
Copy link
Member

Are you getting the same debug message, @wangdean?

@lvyandev
Copy link
Author

lvyandev commented Dec 7, 2023

I think this may be related to the network situation. It has been working fine for me recently.

@aguilaair
Copy link
Member

May be related to #304?

@lvyandev
Copy link
Author

lvyandev commented Dec 7, 2023

It's possible, but I'm not entirely sure.

@aguilaair
Copy link
Member

Do you normally need a proxy?

@lvyandev
Copy link
Author

lvyandev commented Dec 8, 2023

yes, I'm in China, we have trouble connecting Github or pub.dev directly.

@aguilaair
Copy link
Member

I suspect that is the cause, then!

@aguilaair
Copy link
Member

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.

@aguilaair aguilaair added help wanted Extra attention is needed and removed more details Further information is requested MacOS platform-specific labels Dec 10, 2023
@aguilaair aguilaair changed the title macOS shows nothing and keeps loading Proxy issues on Sidkick prevent the app from loading Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants