Error that disappears on retry when fetching logs with viem #10780
Unanswered
arthurgousset
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is not pretty code, but it conveys the bug I'm running into and shows the overall structure of my approach.
TLDR: I'm getting an error when fetching logs, but if I loop over the RPC request, it eventually works.
Here is a similar discussion I checkout out:
The source code can be found here, but I've copy/pasted the key script below for reference:
The output is below:
The "RPC error, trying again..." is what I'm referring to.
The exact error when using
console.log(error)
is:Beta Was this translation helpful? Give feedback.
All reactions