Collection of open-source libraries and tools for Robotic Process Automation (RPA), designed to be used with both Robot Framework and Python
1.17k
stars
225
forks
source link
Lazy evaluation when logging HTTP responses #1121
Open
vinismarques opened 1 year ago
I found an issue when trying to download big ZIP files (~200 MB) with the
HTTP().download()
method.Because currently arguments are always evaluated, the
response.text
is taking quite some time to compute (practically freezing).Here is the code exactly where the problem is occurring:
https://github.com/robocorp/rpaframework/blob/3d57f4237c03c53ee290f8223280a21deda126af/packages/main/src/RPA/HTTP.py#L23C53-L23C66