Skip to content

Commit d309730

Browse files
hive-botclaude
andcommitted
docs: list the remaining retry changes under Changed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 37186b6 commit d309730

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
239239
- A whitespace-only auth key is now rejected by the `DeepLClient` and
240240
`Translator` constructors with an `IllegalArgumentException`; previously it
241241
was sent and failed at the API.
242+
- A transient failure (connection reset, timeout) while reading a downloaded
243+
document (`translateDocumentDownload()`) or translation memory export
244+
(`downloadTranslationMemoryExport()`) is now retried up to `maxRetries` while
245+
nothing has been written to the output yet; previously it failed at once.
246+
- `PATCH` requests are now sent at most `maxRetries + 1` times; previously each
247+
try could make up to 3 hidden extra attempts on top of `maxRetries`.
248+
- Developer key creation (`createDeveloperKey()`, added in this release) is
249+
retried after HTTP 429, a failed DNS lookup, a refused connection or a
250+
connect timeout, as the request was not sent in these cases. A timeout or
251+
connection reset after the request was sent is not retried.
242252

243253
### Deprecated
244254
- `createStyleRule(String, String, ConfiguredRules, List)` and
@@ -272,10 +282,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
272282
- `rephraseText()` and `correctText()` send `targetLang` with only the
273283
language part lower-cased and the rest as given, as text and document
274284
translation do: `zh-Hans` is no longer sent as `zh-HANS`.
275-
- A transient failure (connection reset, timeout) while reading a downloaded
276-
document (`translateDocumentDownload()`) or translation memory export
277-
(`downloadTranslationMemoryExport()`) is now retried up to `maxRetries` while
278-
nothing has been written to the output yet.
279285
- An error response of the form `{"error": {"message": "..."}}` now puts its
280286
message into the exception message; an error body without any message is
281287
appended as the raw body instead of an empty `error message: `.
@@ -286,8 +292,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
286292
the output.
287293
- A `User-Agent` header passed with `setHeaders()` now replaces the built
288294
`User-Agent` in any casing, e.g. `user-agent`.
289-
- `PATCH` requests no longer make up to 3 hidden extra attempts per try on top
290-
of `maxRetries`.
291295
- The language query parameters of `getMultilingualGlossaryDictionaryEntries()`
292296
and `deleteMultilingualGlossaryDictionary()` now encode a space as `%20`
293297
instead of `+`.
@@ -333,10 +337,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
333337
- `translateText()` no longer fails when a translation in the response has no
334338
`billed_characters` (`getBilledCharacters()` returns 0) or a `null`
335339
`model_type_used` (`getModelTypeUsed()` returns `null`).
336-
- Developer key creation is now also retried after a refused connection or a
337-
connect timeout, in addition to HTTP 429 and DNS failures, as the request was
338-
not sent in these cases. A timeout or connection reset after the request was
339-
sent is still not retried.
340340
- Fixed the doc comments of `LanguageCode.English` and
341341
`LanguageCode.Portuguese`, which claimed they may only be used as source
342342
languages.

0 commit comments

Comments
 (0)