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_statepolling 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_stateis allowed to use a fresh ingress_expiry, sopollForResponseandretrylogic 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_codeandreject_messageweren't passed correctly to the error in synchronous callrejectortrapresponses. -
new
ActorCallErrorclass -
AgentErrorandActorCallErrorsupportinstanceofchecks, as well as anameattribute that you can use for easier error handling- some old generic
Errors are now labeled more preciesely
- some old generic
-
chore: Correct the typo in
agent/src/actor.tsby @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
ingressExpiryInMinutesoption 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