Closed shivam-modi closed 3 years ago
Hi @shivam-modi
The error you are getting doesn't seem to have anything to do with firebase. Also based on the screenshot (please refrain from using screenshots, they make searching the issue impossible) you are using a severely outdated version of firebase_auth
(from Oct 12, 2018).
Closing this because it doesn't seem to have anything to do with FlutterFire, google sign in with auth works just fine on the latest versions, and because none of the details in the issue template were provided.
Please switch to the latest versions of the plugins and consider opening the issue in https://github.com/flutter/flutter/issues if the server socket error persists.
Thank you
Hello @markusaksli-nc At first, I opened the issue in https://github.com/flutter/flutter/issues, but they closed it saying it doesn't look like an issue in flutter rather it is an issue in FlutterFire. So, I opened the issue here. Now, you are saying it is not an issue in flutterfire. What should I do next? Also as you mentioned that, I am using an older version of firebase_auth it is because there are dependency constraints that make me unable to upgrade the package. Although I like to mention that it is working fine earlier in both web and app. But now working only on the app.
Could you link the issue you opened on https://github.com/flutter/flutter/issues ?
What dependency constraints stop you from being able to upgrade? Like I mentioned the version you are using is over 2 years old and there have been multiple major reworks and improvements since then.
Even if the issue was with firebase_auth
the only way you would get a fix is by upgrading to a newer version anyway.
Here is the link to the issue I opened yesterday https://github.com/flutter/flutter/issues/77772. I am using chat_pickers https://pub.dev/packages/chat_pickers which makes me unable to update to newer versions of flutter firebase packages and some other packages. I can't remove this package as it is the eternal part of my app. Is there any way to upgrade these packages without removing them?
In that case you should either switch to a more up to date package, figure out your own solution, or try to contrubute so it could be compatible with the latest versions of the officially supported firebase packages.
As it stands though there is nothing here for us to fix since the issue is just with a vastly outdated package version.
Steps to Reproduce
I have recently upgraded flutter, after upgrading firebase auth & google_sign_in stopped working on web version. It is working completely fine on android. Before upgrading, authentication is working fine in both web (on beta channel) and android( stable channel)
Login function snipet
await auth.FirebaseAuth.instance .signInWithEmailAndPassword(email: email.trim(), password: password) .then((value) { setState(() { _user = value; }); });
Create account function snipet
await auth.FirebaseAuth.instance .createUserWithEmailAndPassword( email: email.trim(), password: password) .then((value) { setState(() { _user = value; }); });
Google Sign In snippet `Future _handleSignIn(
GoogleSignInAccount googleuser) async {
auth.FirebaseUser _user;
}`
After login/ sign up there should be a successful redirection to the home page but error occurs MissingPluginException(No implementation found for method signInWithEmailAndPassword on channel plugins.flutter.io/firebase_auth) MissingPluginException(No implementation found for method createUserWithEmailAndPassword on channel plugins.flutter.io/firebase_auth) Google sign in error https://imgur.com/9wQYkgk.png
Logs
After running flutter run --verbose ```[ +145 ms] executing: [/home/shivam/development/appDev/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +71 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] c5a4b4029c0798f37c4a39b479d7cb75daa7b05c [ +1 ms] executing: [/home/shivam/development/appDev/flutter/] git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c [ +20 ms] Exit code 0 from: git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c [ ] 2.0.1 [ +74 ms] executing: [/home/shivam/development/appDev/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [/home/shivam/development/appDev/flutter/] git ls-remote --get-url origin [ +6 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +67 ms] executing: [/home/shivam/development/appDev/flutter/] git rev-parse --abbrev-ref HEAD [ +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +112 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +91 ms] executing: /home/shivam/Android/Sdk/platform-tools/adb devices -l [ +42 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +137 ms] executing: /home/shivam/Android/Sdk/platform-tools/adb devices -l [ +22 ms] Skipping pub get: version match. [ +75 ms] Found plugin clipboard_manager at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/clipboard_manager-0.0.4/ [ +11 ms] Found plugin cloud_firestore at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.4/ [ +9 ms] Found plugin cloud_firestore_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.2.1+2/ [ +16 ms] Found plugin emoji_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/emoji_picker-0.1.0/ [ +17 ms] Found plugin firebase_auth at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ [ +4 ms] Found plugin firebase_core at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.3/ [ +6 ms] Found plugin firebase_core_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+1/ [ +3 ms] Found plugin firebase_dynamic_links at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.6.3/ [ +3 ms] Found plugin firebase_messaging at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ [ +3 ms] Found plugin firebase_storage at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-5.2.0/ [ +5 ms] Found plugin firebase_storage_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-0.1.1+1/ [ +8 ms] Found plugin flutter_chat_bubble at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_chat_bubble-1.0.2/ [ +5 ms] Found plugin flutter_plugin_android_lifecycle at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.11/ [ +9 ms] Found plugin geolocator at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-6.2.1/ [ +4 ms] Found plugin geolocator_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-1.0.1/ [ +5 ms] Found plugin google_sign_in at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.5.9/ [ +4 ms] Found plugin google_sign_in_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.2/ [ +7 ms] Found plugin image_cropper at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropper-1.4.0/ [ +4 ms] Found plugin image_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/ [ +33 ms] Found plugin path_provider at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/ [ +1 ms] Found plugin path_provider_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ +1 ms] Found plugin path_provider_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/ [ +2 ms] Found plugin path_provider_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.5/ [ +17 ms] Found plugin rate_my_app at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/rate_my_app-0.7.2/ [ +6 ms] Found plugin share at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.0/ [ +1 ms] Found plugin shared_preferences at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ [ +1 ms] Found plugin shared_preferences_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+4/ [ +1 ms] Found plugin shared_preferences_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+11/ [ +4 ms] Found plugin shared_preferences_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/ [ +1 ms] Found plugin shared_preferences_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.2+3/ [ +6 ms] Found plugin sqflite at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+2/ [ +12 ms] Found plugin url_launcher at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ [ +1 ms] Found plugin url_launcher_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/ [ +2 ms] Found plugin url_launcher_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/ [ +2 ms] Found plugin url_launcher_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/ [ +1 ms] Found plugin url_launcher_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/ [ +191 ms] Found plugin clipboard_manager at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/clipboard_manager-0.0.4/ [ +2 ms] Found plugin cloud_firestore at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.4/ [ +2 ms] Found plugin cloud_firestore_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.2.1+2/ [ +6 ms] Found plugin emoji_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/emoji_picker-0.1.0/ [ +8 ms] Found plugin firebase_auth at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ [ +2 ms] Found plugin firebase_core at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.3/ [ +3 ms] Found plugin firebase_core_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+1/ [ +2 ms] Found plugin firebase_dynamic_links at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.6.3/ [ +1 ms] Found plugin firebase_messaging at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ [ +3 ms] Found plugin firebase_storage at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-5.2.0/ [ +3 ms] Found plugin firebase_storage_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-0.1.1+1/ [ +6 ms] Found plugin flutter_chat_bubble at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_chat_bubble-1.0.2/ [ +4 ms] Found plugin flutter_plugin_android_lifecycle at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.11/ [ +4 ms] Found plugin geolocator at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-6.2.1/ [ +2 ms] Found plugin geolocator_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-1.0.1/ [ +2 ms] Found plugin google_sign_in at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.5.9/ [ +2 ms] Found plugin google_sign_in_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.2/ [ +3 ms] Found plugin image_cropper at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropper-1.4.0/ [ +1 ms] Found plugin image_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/ [ +20 ms] Found plugin path_provider at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/ [ +1 ms] Found plugin path_provider_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ +1 ms] Found plugin path_provider_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/ [ +1 ms] Found plugin path_provider_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.5/ [ +8 ms] Found plugin rate_my_app at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/rate_my_app-0.7.2/ [ +8 ms] Found plugin share at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.0/ [ +1 ms] Found plugin shared_preferences at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ [ +1 ms] Found plugin shared_preferences_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+4/ [ +1 ms] Found plugin shared_preferences_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+11/ [ +2 ms] Found plugin shared_preferences_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/ [ +1 ms] Found plugin shared_preferences_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.2+3/ [ +4 ms] Found plugin sqflite at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+2/ [ +8 ms] Found plugin url_launcher at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ [ +1 ms] Found plugin url_launcher_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/ [ +1 ms] Found plugin url_launcher_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/ [ +1 ms] Found plugin url_launcher_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/ [ +1 ms] Found plugin url_launcher_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/ [ +30 ms] Generating /home/shivam/github/temp/Insta-quora-project/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +201 ms] List of devices attached [ +5 ms] List of devices attached [ +138 ms] Launching lib/main.dart on Chrome in debug mode... [ +610 ms] "flutter run" took 1,964ms. [ +9 ms] Failed to bind web development server: SocketException: Failed to create server socket (OS Error: Address already in use, errno = 98), address = localhost, port = 2727 [ +3 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 WebAssetServer.start (package:flutter_tools/src/isolated/devfs_web.dart:196:7)