Zilliqa / scilla

Scilla - A Smart Contract Intermediate Level Language
https://scilla-lang.org
GNU General Public License v3.0
241 stars 79 forks source link

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

Open rrw-zilliqa opened 1 year ago

rrw-zilliqa commented 1 year ago

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.