Release 2.1.3
What's Changed
We have a couple fixes and some improvements to errors in this release.
Fixes
- Fixed an issue where
read_state
polling requests would fail after the initial expiry, but before the request was processed- This was an edge case for subnets under high load. The
read_state
is allowed to use a fresh ingress_expiry, sopollForResponse
andretry
logic now uses this pattern
- This was an edge case for subnets under high load. The
- Added a check to handle a regression when calling the management canister using the new sync_call flow
Error handling
-
Fixed an issue where
reject_code
andreject_message
weren't passed correctly to the error in synchronous callreject
ortrap
responses. -
new
ActorCallError
class -
AgentError
andActorCallError
supportinstanceof
checks, as well as aname
attribute that you can use for easier error handling- some old generic
Error
s are now labeled more preciesely
- some old generic
-
chore: Correct the typo in
agent/src/actor.ts
by @AlexV525 in #939 -
fix: trap and throw handling in v3 sync call by @krpeacock in #940
-
fix: read state with fresh expiry by @krpeacock in #938
-
test: automatically deploys trap canister if it doesn't exist yet dur… by @krpeacock in #942
-
chore: skip range check when the certificate comes from the management canister by @dfx-json in #945
-
feat: allow for setting HttpAgent ingress expiry using
ingressExpiryInMinutes
option by @krpeacock in #905 -
feat: improved assertion options for agent errors by @krpeacock in #908
New Contributors
Full Changelog: v2.1.2...v2.1.3