diff --git a/ietf/bin/rfc-editor-index-updates b/ietf/bin/rfc-editor-index-updates index 9cd7b96f4..6c55bc3d7 100755 --- a/ietf/bin/rfc-editor-index-updates +++ b/ietf/bin/rfc-editor-index-updates @@ -49,8 +49,8 @@ log("Updating document metadata from RFC index from %s" % settings.RFC_EDITOR_IN socket.setdefaulttimeout(30) -rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL).raw -index_data = ietf.sync.rfceditor.parse_index(rfc_index_xml) +rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL, stream=True).text +index_data = ietf.sync.rfceditor.parse_index(io.StringIO(rfc_index_xml)) errata_data = requests.get(settings.RFC_EDITOR_ERRATA_JSON_URL).json() diff --git a/ietf/bin/rfc-editor-queue-updates b/ietf/bin/rfc-editor-queue-updates index db454984b..cba0ed3f7 100755 --- a/ietf/bin/rfc-editor-queue-updates +++ b/ietf/bin/rfc-editor-queue-updates @@ -21,8 +21,8 @@ from ietf.utils.log import log log("Updating RFC Editor queue states from %s" % settings.RFC_EDITOR_QUEUE_URL) socket.setdefaulttimeout(30) -response = requests.get(settings.RFC_EDITOR_QUEUE_URL).raw -drafts, warnings = parse_queue(response) +response = requests.get(settings.RFC_EDITOR_QUEUE_URL).text +drafts, warnings = parse_queue(io.StringIO(response)) for w in warnings: log(u"Warning: %s" % w)