Hi everyone ,
Over the past few weeks, there have been several reports on the forum from devs encountering ingress expiry issues, such as the following:
Error: ReplicaTimeError: Specified ingress_expiry not within expected range: Minimum allowed expiry: 2024-09-25 13:57:00.580809774 UTC, Maximum allowed expiry: 2024-09-25 14:02:30.580809774 UTC, Provided expiry: 2024-09-25 13:57:00 UTC
While we provided some valid explanations and future improvements in various threads yesterday (for example here), we’ve continued to analyze the issue. After further discussions and debugging, we believe we may have found a potential issue that was introduced in agent-js
version v2.1.0.
We’re not 100% certain this is the root cause of the problem, but we think there’s a possibility. That’s why we’re requesting your help to test our hypothesis.
If you are not using any of the new features introduced in v2.1.0
or later, could you try downgrading your version of agent-js (and related libraries, identity, etc.) to v2.0.0 and let us know if the issue is resolved?
For example:
npm rm @dfinity/agent @dfinity/principal @dfinity/auth-client
npm i @dfinity/agent@2.0.0 @dfinity/principal@2.0.0 @dfinity/auth-client@2.0.0
Please note that if you are using any ic-js
libraries (@dfinity/ledger-icp
etc.), you can force npm to remove and downgrade the agent with the flag --force
. While this is not an elegant solution, ic-js
should remain compatible with the latest versions of those libraries.
Thanks a ton for your help!