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
macOS - FirebaseDatabase ConnectToServer: connect() failed #3033
Comments
Are you able to access the database without errors when running the database quickstart? |
Hey @morganchen12 sorry I should have been more clear. I am trying the version for macOS, the iOS connection works just fine. Have just created my partner app for iOS and it works like a charm. My macOS application however can not access the database. |
It might be issue 2248 Just for reference, check out some other info on issue 3032 which may or may not help - the info applies to both Firebase Realtime Database and Firestore initializing. Once we made the changes per that thread things worked much more consistently. |
Hey @visdyn that's a good point. Issue 3032 I had looked at before and tried working with Firestore as well. Issue 2248 was new to me, but unfortunately (or fortunately) my CocoaPods install added the -ObjC flags properly and that was no issue at all. My Database reference is also not null as you can see in the screenshot I attached. Still tapping in the dark here what is going wrong. My Database is as open as can be, so access should not be an issue. Thanks for the help so far though. I'm starting to wrap my head around how things work with firebase. |
Little update: Still no successful connection from my macOS app. Have coded a simple WebApp using straight JS and it can - just like my iOS client - successfully access the Database. So access to the database and rules etc. should not be the issue. Is there a previous version I could try to install? If so, how could I do that? |
Another quick little update, I tried out installing using CocoaPods from branch 'release-6.1.0', 'release-5.20.0', 'release-5.15.0' as well as 'fcm-iid-macos' and 'tvOS_master'. None of these worked and they all produced the same issue. The issue I described in the first post. |
Oh, don't mind me. I found out what was going wrong. The keyword is "sandboxing"! For some reason never thought of this to be the issue. To get this working simply deactivate sandboxing for your target (or allow outgoing/incoming network connections). Oh my I feel so stupid right now for banging my head against the wall for days because I forgot to disable a single switch. If anyone ever finds this in the archive, please try sandboxing first. :) |
Hey guys,
I'm running into an issue with Firebase for macOS.
The problem I'm running into is that while I am able to call FirebaseApp.configure() in my app, Database.database().reference gives me this output to the console:
The issue occurs whenever I try to get the reference of the database or if I try goOnline(). Any ideas of how to solve this?
Here's the only code from Firebase that I have in my project.
The text was updated successfully, but these errors were encountered: