rpaframework icon indicating copy to clipboard operation
rpaframework copied to clipboard

Lazy evaluation when logging HTTP responses

Open vinismarques opened this issue 1 year ago • 0 comments

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

vinismarques avatar Oct 27 '23 22:10 vinismarques