Repository navigation
v3.2.1
Thank you to @lahma for the fixes in this release (PRs #86–#91).
The 3.2.0 tag exists but was never published to NuGet; this is the first release of these changes. Packages are now published with NuGet Trusted Publishing.
- Added:
GotenbergApiException.Traceexposes theGotenberg-Traceheader of an error responseGotenbergApiException.CreateAsync()reads the error body asynchronously with the caller's cancellation token- Options are validated when first read, or at start-up with
ValidateOnStart():ServiceUrlmust be an absolute http or https URL,TimeOutmust be positive or infinite, and enabled retry settings must not be negative
- Changed:
- The built-in retry policy now retries connection failures, 429, 502 and 503, instead of every 5xx and 408. A 500 from a failed conversion is no longer repeated
PaperSizes.A3–A6andPageProperties.ToA4WithNoMargins()are exact to the millimetre instead of rounded inches- The
GotenbergResponseReceivedsection ofToVerboseJson()has a fixed shape instead of a reflection dump ofHttpResponseMessage GotenbergApiExceptionno longer holds the response; error responses are disposed once read
- Deprecated:
GotenbergApiException.Create(); useCreateAsync()- The implicit
int/doubletoDimensionconversions, which mean inches; useDimension.FromInches,FromMillimetersand so on. Builds that treat warnings as errors will need to state the unit
- Fixes:
- Retry settings on a
GotenbergSharpClientOptionssubclass registered withAddGotenbergSharpClient<TOptions>()were ignored - A request with a non-seekable
Streamasset is no longer retried, which failed withInvalidOperationExceptionand hid the original error - Error bodies no longer block a thread with
.Resultin the async conversion path
- Retry settings on a
- Docs:
- Quick start pins
gotenberg/gotenberg:8, since this client does not yet support Gotenberg 9
- Quick start pins