Giter Site home page Giter Site logo

Comments (5)

minbi avatar minbi commented on June 1, 2024

Hi @bhoopendrayash ,

Thanks for reporting this issue. We will report back on this thread after investigating.

from aws-mobile-appsync-sdk-android.

scb01 avatar scb01 commented on June 1, 2024

@bhoopendrayash

Sorry to hear that you are running into issues. Some questions to debug this further

  • You mentioned that you tried to increase the timeout. Can you share a code snippet of how you did that?
  • Are you able to run this query from the console?
  • Does this work when you run it in a simulator using Android Studio

from aws-mobile-appsync-sdk-android.

bhoopendrayash avatar bhoopendrayash commented on June 1, 2024

Hi @cbommas

  • Code snippet for timeout:
    public static final int TIMEOUT = 120000000;// tried 60, 90 as well.
    ClientConfiguration clientConfiguration = new ClientConfiguration();clientConfiguration.setConnectionTimeout(TIMEOUT);
    clientConfiguration.setSocketTimeout(TIMEOUT);
    clientConfiguration.setMaxErrorRetry(0);
    cognitoUserPool = new CognitoUserPool(context, userPoolId, clientId, clientSecret, clientConfiguration, cognitoRegion);

  • Query is running in console as well as in iOS platform.

  • I have not tested on simulator, tested only in devices which are mentioned.

from aws-mobile-appsync-sdk-android.

scb01 avatar scb01 commented on June 1, 2024

@bhoopendrayash

Thanks for sharing the code snippet. Unfortunately, the timeout that you are setting there doesn't apply to the AppSync call - Within AppSync, it will use OKHttp's default timeout ( which I believe is set to 30 seconds).

From the log, it does look like a timeout at the OKHTTP level

Couple of follow up items
a) Can you run this on a simulator and see if that works from there
b) Which version of OKHTTP are you using?

from aws-mobile-appsync-sdk-android.

bhoopendrayash avatar bhoopendrayash commented on June 1, 2024

Thanks for you response, I am able to run query now after making changes in okHttpClient.

from aws-mobile-appsync-sdk-android.

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.