Comments (5)
Hi @bhoopendrayash ,
Thanks for reporting this issue. We will report back on this thread after investigating.
from aws-mobile-appsync-sdk-android.
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.
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.
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.
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)
- Resending of the messages missed in the subscription
- Execution failed for task ':app:nodeSetup'. HOT 1
- android.net.ConnectivityManager$TooManyRequestsException HOT 9
- Execution failed for task ':app:nodeSetup'. HOT 5
- Android Studio Bumblebee will further break compatibility with Jetpack libraries HOT 3
- NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.amazonaws.mobile.config.AWSConfiguration.optJsonObject(java.lang.String)' on a null object reference HOT 3
- No ability to serlialize null input fields
- App Sync SDK crashing with SQLiteBlobTooBigException HOT 4
- How can we encrypt cache data
- AppSync codegen models throws @Nullable @Nullable HOT 4
- AppSync codegen model "S3ObjectInput" methods override error
- Cognito API InitiateAuth + REFRESH_TOKEN_AUTH does not return updated RefreshToken HOT 2
- Fatal Exception: java.lang.NullPointerException: Parameter specified as non-null is null
- AppSync gradle plugin has conflict with Apollo3 plugin HOT 1
- GraphQL subscription error 403 HOT 1
- Wrong serialisation for Enum type in WebSocketConnectionManager
- AWSAppSyncClient is not generating code from the graphql file in Android HOT 20
- AWS appsync doesn't build with agp version 8.0 HOT 5
- app crashes when retrying all subscriptions HOT 1
- Gradle configuration cache support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-mobile-appsync-sdk-android.