-
-
Notifications
You must be signed in to change notification settings - Fork 218
http request error on macOS #277
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
Comments
Hey, now your error message is missing in the issue. May you try normal https requests without the supabase package to your server? |
Error messages: |
Can you access your server in your mac app with any other http request via Dart http package? |
macOS needs you to request a specific entitlement in order to access the network. To do that open macos/Runner/DebugProfile.entitlements and add the following key-value pair. |
set config macos/Runner/DebugProfile.entitlements |
Describe the bug
Supabase deployed on Linux on the local LAN, real mobile phone requests can normally return data, and macOS requests will report HTTP errors. url like this: 'http://192.168.8.182:8000/'
To Reproduce
this error appears in all http requests
Additional context
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.7, on macOS 12.6 21G115 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.71.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
• No issues found!
The text was updated successfully, but these errors were encountered: