Canister errors, Subnet slowness errors, and all of the above

I am trying to fix an error that I’m getting on one of my projects that only happens on ic0. On the Bob subnet it is often experiencing high congestion and during a call to my backend code I will get an “ingress_expiry not within expected range” error. People I’ve talked to have told me that the subnet takes too much time to start the request and then the request is expired by the time the subnet gets to it.

What I’m looking for is a way to have this occur on my local replica. Is there a way to set the local replica to always have this error? I think this error and any other possible errors would be good to initiate from a local replica, but I don’t know how to do it.

The developer AI gave me a suggestion to change my local time on my machine to make the replica think the request timed out, but I believe this should be some setting on the local replica so that I can develop locally.

Thanks.

1 Like

In the latest agent-js release Kai added the ability to give a timestamp to the agent as the current time. If you fudge that to be wrong then you should get the same error. Otherwise I don’t have any ideas

1 Like