As the title says, I’m attempting to use the trace methods (specifically trace_block). Everything is good with the response when it works normally. The only problem I face is intermittent: sometimes it works, other times it responds saying “the method does not exist or is not available.”
The trace methods are available only to our paying customers. This response is expected if you’re using our Core Free account. I can’t reproduce the behaviour on my end. The response I am getting on my free account is the same as yours but consistent with each attempt.
Would mind sharing:
According to the Infura documentation about JSON-RPC errors, the error -32601 indicates a method that does not exist or cannot be found. If the method does exist, but the problem is related to my account plan, it should respond with a different error code (e.g., -32005). This would save many headaches during development.
Yes, you’re correct. I shouldn’t have asked for the API key. It looks like I built this reflex while working on our TS requests in Zendesk. I appreciate you reminded me.
And I see your point concerning the error message. It could be phrased better.
The -32005 error code, though, is linked to exceeding the account request limit: " The request exceeds your request limit. For more information, refer to [Avoid rate limiting (Avoid rate limiting | INFURA)."
I don’t see it as a better fit for the situation raised here. Until this part receives an update, the error codes will remain as they are. Should you encounter something like this again in the future, please feel free to reach out. We’re more than happy to assist in any way we can.
I can confirm this issue.
I’m dealing with the same error, but just for a different method trace_filter instead of trace_block.
The corresponding Infura account is a non-free account.
Sometimes the API return -32601 or the expected response with the tracings.
I managed to reproduce this on my end as well.
I’ll speak with our dev team and find the reason.
Please be aware that support is limited throughout the whole week, so I’d expect to get a reply no sooner than next Monday.