Fixed a bug in the error handler for the request_contract_details method.