Catch error better for invalid rpc auth