Giter VIP home page Giter VIP logo

Comments (12)

tal-mi avatar tal-mi commented on August 20, 2024 1

Thanks. I'll make the necessary updates.

from gigya-flutter-plugin.

tal-mi avatar tal-mi commented on August 20, 2024

Are you able to provide us with some error logs so we can investigate this?
If not, please open a support ticket providing the necessary data (which cannot be shared in open source).

Regards,
Tal

from gigya-flutter-plugin.

kidandcat avatar kidandcat commented on August 20, 2024

Sorry for the late. I can't provide you with a reproducible error because it only happens in the production release of our app, and we are not able to reliable reproduce the issue in debug mode. Also it happens in random time intervals.

Maybe if we got more debug info from the library when an error happens, or a way to at least debug network requests, we could get something.

This is the application: https://play.google.com/store/apps/details?id=es.sonypictures.reactions

This is the code fragment where we get the error:

              try {
                print('Google logging in...');
                await GigyaSdk.instance.socialLogin(SocialProvider.google);
                Get.offAll(GigyaLoginChecker());
                print('Google Logged in OK');
              } on GigyaResponse catch (e) {
                if (e.getInterruption() == Interruption.pendingRegistration) {
                  print('handleGigyaMissingField');
                  handleGigyaMissingField(e);
                  return;
                }
                if (e.getInterruption() == Interruption.conflictingAccounts) {
                  LinkAccountResolver resolver =
                      GigyaSdk.instance.resolverFactory.getResolver(e);
                  final ConflictingAccounts conflictingAccounts =
                      await resolver.getConflictingAccounts();
                  _showLinkToSiteBottomSheet(
                    conflictingAccounts.loginID,
                    resolver,
                  );
                  return;
                }
                print(
                  'Unknown Error ${e.errorCode} ${e.errorDetails} ${e.statusCode} ${e.statusReason} ${e.callId} ${e.mapped} ${e.toString()}',
                );
                showErrorBottomSheet(
                  e.errorCode,
                  'Unknown interruption (${e.getInterruption()}): ${e.errorCode} ${e.errorDetails} ${e.statusCode} ${e.statusReason}',
                );
             }

We get a generic 400 error with no more information.

Those logs are visible in logcat. Also when logging the error in question, errorDetails is empty, and errorCode is 400. getInterruption() is also null.

We can't log any other kind of information. And this error just happens when using Google social login, and randomly between time intervals, so for example, it doesn't work for 5 minutes, don't mind how many times you try, and later it start working.

from gigya-flutter-plugin.

tal-mi avatar tal-mi commented on August 20, 2024

I will investigate and update. Thank you for the info.

from gigya-flutter-plugin.

ShestakovaOlga avatar ShestakovaOlga commented on August 20, 2024

Hi,
we have new info from the error: "Missing server client id. Check manifest implementation"

from gigya-flutter-plugin.

tal-mi avatar tal-mi commented on August 20, 2024

Hi,

Please follow guidelines to make sure that the Google auth library is properly implemented.
https://sap.github.io/gigya-android-sdk/sdk-core/#google

from gigya-flutter-plugin.

ShestakovaOlga avatar ShestakovaOlga commented on August 20, 2024

Thanks for the quick response,
Yes, we followed that guide. And the "missing server client id..." was our fault, we ported the project to sound safety and we didn't configure it properly.

Now we configured it, and we got the same error as before. It seems to have more android stack traces now (or they may not be related, not sure):

image

The last line full of nulls is us trying to print any info from the GigyaResponse:
'Unknown Error ${e.errorCode} ${e.errorDetails} ${e.statusCode} ${e.statusReason} ${e.callId} ${e.mapped} ${e.toString()}'

from gigya-flutter-plugin.

tal-mi avatar tal-mi commented on August 20, 2024

Your Android Core SDK is not yet configured correctly.
https://sap.github.io/gigya-android-sdk/sdk-core/#configuration

Please Add the HostActivity to your AndroidManifest.xml.

from gigya-flutter-plugin.

ShestakovaOlga avatar ShestakovaOlga commented on August 20, 2024

Hi,
thank you for your answers! We are still working on it.
The link to the configuration page in the Google section in Readme points to https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD?locale=en-US .
I think it should point to https://sap.github.io/gigya-android-sdk/sdk-core/#configuration.

from gigya-flutter-plugin.

 avatar commented on August 20, 2024

Hi,
now we have new error information:
Unknown Error 400 null 0 null {localizedMessage: DEVELOPER_ERROR, callId: , errorCode: 400, statusCode: 0} Instance of 'GigyaResponse'

from gigya-flutter-plugin.

tal-mi avatar tal-mi commented on August 20, 2024

Hi,

DEVELOPER_ERROR is returned from Google.
This means that your implementation is not correct via the Google API console.

from gigya-flutter-plugin.

 avatar commented on August 20, 2024

Hi,
we have fixed the error. In the end, we needed to add this line: classpath 'com.google.gms:google-services:4.3.10' to this file: android/build.gradle. Thanks for the help

from gigya-flutter-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.