simonbengtsson / airdash

File sharing flutter webrtc app enabling sending files to any device from anywhere
https://airdash-project.web.app
MIT License
564 stars 116 forks source link

gRPC Error on launch #30

Open gisborne opened 4 months ago

gisborne commented 4 months ago

Every time I launch (MacOS Sonoma; M1 MacBook Air), I get:

======== Exception caught by Flutter framework =====================================================
The following GrpcError was thrown:
gRPC Error (code: 7, codeName: PERMISSION_DENIED, message: Missing or insufficient permissions., details: [], rawResponse: null, trailers: {x-debug-tracking-id: 17630615169110951041;o=1})

When the exception was thrown, this was the stack: 
====================================================================================================

(Note no stacktrace)

% flutter doctor -v [✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-arm64, locale en-AU) • Flutter version 3.22.3 on channel stable at /Users/gisborne/dev/bin/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision b0850beeb2 (3 weeks ago), 2024-07-16 21:43:41 -0700 • Engine revision 235db911ba • Dart version 3.4.4 • DevTools version 2.34.3

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2) • Android SDK at /Users/gisborne/Library/Android/sdk • Platform android-33, build-tools 33.0.2 • ANDROID_HOME = /Users/gisborne/Library/Android/sdk ✗ Android SDK file not found: /Users/gisborne/Library/Android/sdk/platforms/android-33/android.jar. • Try re-installing or updating your Android SDK, visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15F31d • CocoaPods version 1.15.2

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

[!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.4) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 80.0.2 • Dart plugin version 241.18808

[✓] VS Code (version 1.89.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.27.0

[✓] Connected device (5 available) • Iris (mobile) • 00008030-001879541480802E • ios • iOS 17.5.1 21F90 • Athena (mobile) • 00008103-0008716C216B001E • ios • iOS 17.5.1 21F90 • macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.127

[✓] Network resources • All expected network resources are available.

! Doctor found issues in 2 categories.

gisborne commented 4 months ago

Note that the downloaded app works, so this may have to do with my Firebase setup.

simonbengtsson commented 4 months ago

Weird! Considering it is a permission error - could it perhaps be that internet permission flag is needed in the Mac xcode project? Unlikely perhaps though considering the xcode project in the repo already should have this configured.

gisborne commented 4 months ago

I did have to run pod install and flutter clean and such.

XCode shows I have Incoming and Outgoing Connections already turned on.

gisborne commented 3 months ago

Still no closer to fixing this. Hard to even know where to start.