Skip to content
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

Java ApolloClient SocketTimeoutException, how to fix #11573

Closed
AerialSky93 opened this issue Feb 5, 2024 · 3 comments
Closed

Java ApolloClient SocketTimeoutException, how to fix #11573

AerialSky93 opened this issue Feb 5, 2024 · 3 comments

Comments

@AerialSky93
Copy link

We are using ApolloClient in Java and receiving this error. How can it be fixed? What timeout config parameters should be added to request headers?

Code:

apolloClient
    .query(query)
    .toBuilder()
    .requestHeaders(headersData)
    .build()
    .enqueue(new ApolloCall.Callback<>() {

Error:

message=com.apollographql.apollo.exception.ApolloNetworkException: Caused by: java.net.SocketTimeoutException: timeout

This stacklink is not Apollo specific rather OkHttp library, java.net.SocketTimeoutException: timeout

@jerelmiller
Copy link
Member

Hey @AerialSky93 👋

I think you're meaning to open this in the Apollo Kotlin repo 🙂 . This repo contains all the JavaScript/TypeScript client code and doesn't handle Java. Feel free to open this issue over there and I'm sure you'll get the help you need!

Copy link
Contributor

github-actions bot commented Feb 6, 2024

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.

Copy link
Contributor

github-actions bot commented Mar 9, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants