Constant error when using agent-js, canister inaccessible with 75% of calls failing with
Error while making call: Timestamp failed to pass the watermark after retrying the configured 3 times. We cannot guarantee the integrity of the response since it could be a replay attack.
There is a forum post with this error message where it was happening for different agent-js versions, additionally there was a suggestion to optionally disable watermark check (with corresponding PR).
I would encourage people who report this (or similar issues)
to provide their agent-js version
some minimal steps to reproduce the issue
maybe also to comment on their experience with retry strategy (if that helps or not)
add ‘+1’/thumbs-up or whatever emoji to the feature request PR to indicate you’re affected by the issue too
No, system time is set perfectly correct(windows, time sync enabled, tz correct)
Issue is kind of wide-spread, I’ve also been chatting with other dev yesterday and he seen a lot of this in his front-end as well
It leads to incredible sluggishness as part of requests never finish at all(absolutely ruins UX)
The gateway (not the IC itself) was under heavy load yesterday, I had issue accessing websites but, now everything is back to normal. Therefore I was wondering, are you still facing the issue today?
I’ll try updating to the 2.4.1 and see if it still persist
But this is an ancient issue, I’ve been devving dapp for past half year with various agent versions and it’s been always here
I use 10 (#yolo) but according to the comment I left in the code as documentation, the error it resolves isn’t the same as the one you originally mentioned.
Not sure it helps in your case, maybe worth a try anyway?
Just also put it to 10. Nice one…
At least requests hopefully won’t just fail now but just take longer
Any idea on what is the root cause and how this can be adressed? As far as I understand it’s an issue with nodes…
but why this keeps happening(sporadically)?
If the issue only happened yesterday, I think it was related to what I mentioned above.
If it starts happening more often, I have to admit I’m not entirely sure — hence the #yolo hashtag in my previous post
I remember initially using the option on one side due to heavy network load (few months ago), but also because it helped overcome a bug in agent-js that (I think) was fixed in v2.3.0. In the end, I just stuck with 10 retries because why not? But again, it might just also help avoid a different issue and not help in yours at all.