You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated Builder class in ClientOptions.java has an issue with premature instantiation of the httpClient. The default timeout is set during initialization, which prevents adjusting the timeout through the builder method.
The Builder class should be generated in a way that either reinitializes or lazily builds the httpClient in the build method to allow timeout adjustment.
Additional information
How ClientOptions was generated previously in fernapi/[email protected]
Which Fern component?
SDK Generator
How urgent is this?
P1 - High (Strongly needed)
What's the issue?
Steps to reproduce:
Actual result
The generated
Builder
class inClientOptions.java
has an issue with premature instantiation of thehttpClient
. The default timeout is set during initialization, which prevents adjusting thetimeout
through the builder method.Here's an example of current generation
Expected result
The
Builder
class should be generated in a way that either reinitializes or lazily builds thehttpClient
in thebuild
method to allow timeout adjustment.Additional information
How
ClientOptions
was generated previously infernapi/[email protected]
Fern CLI & Generator Versions
0.56.12
fernapi/fern-java-sdk
:2.21.0
Workaround
The only way to adjust the timeout is to provide a custom
httpClient
to aBuilder
instance with the desired settings.Logs & Additional Context
No response
Are you interested in contributing a fix?
No
The text was updated successfully, but these errors were encountered: