rpaframework
rpaframework copied to clipboard
Lazy evaluation when logging HTTP responses
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