scilla icon indicating copy to clipboard operation
scilla copied to clipboard

fix(server): Log a backtrace when RPC fails. Closes #1223

Open rrw-zilliqa opened this issue 2 years ago • 0 comments

Log an exception when an RPC error occurs, to cue observers in on where the issue might lie. It would be better in future to decode these properly and return a meaningful error message in a well-formed JSON reply, but for now this is at least better than claiming that all errors are RPC format problems. I have avoided returning valid JSON in case it causes us to leak security-sensitive data to callers.

rrw-zilliqa avatar Jan 27 '23 18:01 rrw-zilliqa