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
Sometimes, the server response may include additional properties that are not yet available in this library's types. You can access them using the model's `_additionalProperties` method:
@@ -201,6 +208,7 @@ Sometimes, the server response may include additional properties that are not ye
@@ -258,6 +266,7 @@ You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lith
258
266
259
267
---
260
268
269
+
261
270
## Error handling
262
271
263
272
This library throws exceptions in a single hierarchy for easy handling:
@@ -284,35 +293,27 @@ This library throws exceptions in a single hierarchy for easy handling:
284
293
## Network options
285
294
286
295
### Retries
287
-
288
296
Requests that experience certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a network connectivity problem), 409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried by default.
289
297
You can provide a `maxRetries` on the client builder to configure this:
290
-
291
298
```java
292
299
LithicClient client =LithicOkHttpClient.builder()
293
300
.fromEnv()
294
301
.maxRetries(4)
295
302
.build();
296
303
```
297
-
298
304
### Timeouts
299
-
300
305
Requests time out after 60 seconds by default. You can configure this on the client builder:
301
-
302
306
```java
303
307
LithicClient client =LithicOkHttpClient.builder()
304
308
.fromEnv()
305
309
.timeout(Duration.ofSeconds(30))
306
310
.build();
307
311
```
308
-
309
312
### Environments
310
-
311
313
Requests are made to the production environment by default. You can connect to other environments, like `sandbox`, via the client builder:
0 commit comments