Fixed the errors in  sign_request method and modified missing required parameter exception

Fixed the errors in  sign_request method and modified missing required parameter exception