Skip to content

v0.11.0

Choose a tag to compare

@nmajor nmajor released this 10 Nov 23:28
· 3 commits to main since this release
  • A list page (the first page or a later one) that gets 504 QBD_REQUEST_TIMEOUT is no longer thrown at once: the SDK long-polls the request until it ends or the call's time budget passes, like every other call and like the other SDKs, and never resends the page. It throws RequestPendingException if the request is still running at the deadline.
  • A write whose outcome was unknown and that the platform later recovered (request succeeded, outcome applied, recovered: true, result null, recoveredObjectId set) throws the new ResultUnavailableException from RequestHandle.await(), RequestHandle.result() and the long poll after 504 QBD_REQUEST_TIMEOUT. They threw a DaapiException from parsing the missing result. It extends InternalException and carries requestId(), outcome() applied, retryable() false and recoveredObjectId(); retrieve the object by that ID and do not send the write again. This holds also when the result is past retention (resultExpired true).
  • 500 INTERNAL_ERROR with details.reason result_unavailable (the result is no longer available) throws ResultUnavailableException (recoveredObjectId() null) and is never retried, even when Daapi-Should-Retry says true. For a write that was applied (outcome: applied), never send it again and read the object instead; for a read (outcome: not_applicable), it is safe to send the read again.
  • PriceLevelListParams.itemId(String) is an alias of itemIds(String) with Conductor's name for this filter, so Conductor code ports unchanged. Both take one item ID; setting both to different values returns 400 INVALID_PARAMETER. BatchPriceLevelListInputQuery has the same alias for batch members.

All versions: CHANGELOG.md.