Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mocknet): return HTTP 200 on error in neard_runner.py (#10967)
JSON RPC errors should return 200 on error, since there's nothing wrong with the HTTP layer. This simplifies error handling in general, and makes it more straightforward to see that the error was at the JSON RPC level instead of HTTP, and to inspect the type of error returned in that case This will be useful when we add support for fork-network in mocknet, because then we'll want to add a new RPC method that tells what type of mocknet we're running (legacy records.json vs fork-network), and we'll want to more granularly tell whether that RPC call fails because the neard runner doesn't recognize the method name, which will tell us that it's an older neard_runner.py and that we can assume it's using the legacy records
- Loading branch information