Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Failed to generate client library: Read time-outs #99

Open
cmaan opened this issue Jan 22, 2021 · 0 comments · May be fixed by cloudendpoints/endpoints-java#192
Open

Failed to generate client library: Read time-outs #99

cmaan opened this issue Jan 22, 2021 · 0 comments · May be fixed by cloudendpoints/endpoints-java#192

Comments

@cmaan
Copy link

cmaan commented Jan 22, 2021

We get read time outs when trying to generate our client libraries using gradle endpointsClientLib.

Caused by: java.net.SocketTimeoutException: Read timed out
        at com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:36)
        at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:149)
        at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:84)
        at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012)
        at com.google.api.server.spi.tools.CloudClientLibGenerator.postRequest(CloudClientLibGenerator.java:65)

When cutting down on the number of endpoints, the generation sometimes succeeds. Our discovery doc size is 352K.

We believe that the generation is hitting the Appengine request duration limit of 60 sec. Locally (using https://github.com/google/apis-client-generator/), the generation takes 13 sec, but that method does not generate the same code structure as the endpointsClientLib task, so can't be used as a drop-in replacement/workaround. Maybe deploying to a larger instance size is a solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants