Skip to content

RTR_ListFiles returns empty "resources" #880

Answered by jshcodes
TaihouKai asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TaihouKai -

Thanks for the question!

You're correct, this is most likely occurring because the file transfer has not yet completed. You're also on the correct path to address this. Similar to how you check for command execution with cloud_request_id using the RTR_CheckCommandStatus operation above, we can implement a loop check. (You could add a sleep timer for a few seconds, or minutes, depending on your scenario.)

Regarding the command execution loop check: You can check for the value of complete in the results returned from RTR_CheckCommandStatus, but it is safer to check the contents of stdout and stderr. While this happens rarely, when the result exceeds the available size for s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TaihouKai
Comment options

Answer selected by TaihouKai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
RTR Real Time Response issues and questions API usage General API usage issues and questions
2 participants