Better error logging or SandboxApi.dispatch_request()