I have a long time taking request. I added the timeout like this
val apolloClient = ApolloClient.Builder() .serverUrl("something") .addHttpHeader("Authorization", "Bearer $token") .httpEngine(DefaultHttpEngine(timeoutMillis = 10_000)) .build()
But still I am getting this exception:
ApolloHttpException: Http request failed with status code 504`` . And I have tried increase the timeout, but it has zero affect.
What am I doing wrong here?