OpenRPA version: N/A
OpenFlow version: v1.5.10
Using app.openiap.io or self hosted openflow: self-hosted
Error message:
Screenshot or video:
Attach a simple workflow from OpenRPA or NodeRED that reproduces the error/issue:
Using the rustapi 0.0.17 in an agent local test environment, it appears there’s a missing await somewhere on the file download of popworkitem.
This was observed with a csv file of a bit over 2MB, where the last bits of the file were cut off, causing reading issues.
Adding a Task.Delay(2000);
made it download correctly, pointing to a missing await somewhere. The workaround is not scalable, as the await time would need to differ depending on file size, connection speed etc.
Repro:
- Add a workitem with an attached file of at least a couple MB (depending on your connection throughput the size may vary)
- Use the following code with api 0.0.17:
var workItem = await openflowClient.PopWorkitem("FileUploadTestQueue", downloadfolder: WORKING_FOLDER);
- Try reading the file immediately after that line (or debug stop).
- Compare the downloaded file with the version from OpenFlow.
Also minor issue with the popworkitem:
when checking the .files
property of the workitem, it’s null. Not sure if that’s how it supposed to be. It doesn’t make finding the files which were downloaded super easy, as one needs to operate on temp folders one item at a time (and hope that it fetched everything) with clean-up between transactions, as there isn’t a straightforward way of knowing which files came with this workitem.
Or I’m missing some way to do it better.