diff --git a/vespa/repository/api/ingestion/streamer.py b/vespa/repository/api/ingestion/streamer.py index 11407cd..4f1fccf 100644 --- a/vespa/repository/api/ingestion/streamer.py +++ b/vespa/repository/api/ingestion/streamer.py @@ -192,7 +192,7 @@ def _parse_xml_stream(self, stream): async def async_generator(): # Use xmltodict's streaming mode to process XML elements one by one try: - for doc in xmltodict.parse(stream, stream=True): + for doc in xmltodict.parse(stream): yield doc except Exception as e: self.logger.error(f"Failed to parse XML stream. Error: {e}")