Jordan Finci
Jordan Finci
Not to hijack this thread, but i'm also somewhat confused about the intended outcome of these configurations. I posted a SO question here: https://stackoverflow.com/questions/69932026/how-to-configure-step-which-fails-on-any-read-exception-never-rolls-back-but-s
Ultimately all "Default*Api" classes call https://github.com/square/square-java-sdk/blob/65a992f0355ee404655170e00022cda2c71df01a/src/main/java/com/squareup/square/api/BaseApi.java `validateResponse` which news `ApiException`. The implementation of ApiException just needs to use the response if it has one and parse it earlier to pass...
Square should consider renaming the class name On Sat, Nov 11, 2023 at 1:30 PM Bryce Blankinship ***@***.***> wrote: > @finci-square aha I found my issue and > I think...
ah so I discovered you can aggressively shutdown the underlying OkHttpClient instance by calling `SquareClient.shutdown();`, so at least that partially fixes my problem. Still would be better to have both...
just hit another use case where I need the client- I would like to register an interceptor on the client created by the SDK so I can capture response time...
I've implemented my own `Configuration` to replace `SquareClient` and implemented my own `HttpClient` to replace the `OkClient`, which, unfortunately, requires some copy pasta and will make upgrades harder
I think this needs to be reopened. Setup a meeting with me if you want to discuss more. Its great that you have a interface, but, I don't want to...
In order to use my own client i also need to copy pasta ALL of `https://github.com/square/square-java-sdk/blob/master/src/main/java/com/squareup/square/SquareClient.java` to my own `MySquareClient` which is again really unfortunate