removed error from api_request