01-03-2019 05:26
01-03-2019 05:26
I was trying to send a number of files from watch to companion and when i tried to queue a number of files in staging area i got this issue "Failed to stage file for transfer".
Is there any limit for the number of files we can send to the staging queue ?
How many files can i send to companion app from watch sequentially ?
Is there any other things that i need to consider while sending files continuously from watch to companion using file-transfer api in SDK 3.0 .
01-08-2019 17:09
01-08-2019 17:09
I'm not aware of a specific limit. How many files, and how big were they?
01-08-2019 21:44
01-08-2019 21:44
@JonFitbit What we need to achieve is that we will be storing data from sensors continuously on files as arraybuffer and each file contains 7.8 KB of data and we need to send several files to companion app from device.
Also when we call enumerate() function we are only getting one item in the list and at that time we were unable to send the files and shows "Failed to schedule transfer: Failed to stage file for transfer".
We have to perform fetching data from sensors (Accelerometer, Barometer, Orientation, HR, Gyroscope, Body presense) as well as sending files from device to companion parallelly without affecting memory. Could you guide us to achieve this if it's possible as we were getting "App message queue full" during our workaround.
08-21-2019 22:18
08-21-2019 22:18
Have you found the solution ? I'm having the same issue.
10-27-2019 05:46
10-27-2019 05:46
I am also having the same issue. Any workarounds?
10-27-2019 09:18
10-27-2019 09:18
I worked around this by listing out all the files and comparing it to what has been en-queued using outbox enumerate. I had 20 items in the queue all pending and none were available as files on file system.
I then used cancel() on each file transfer to clear it. After that "Failed to stage file for transfer" error stopped. At this point I don't know if the issue was related to 20 files in outbox or that the files were missing from file system.
I am handling this error now by cancelling any pending transfers if enqueue fails.
04-06-2021 05:03
04-06-2021 05:03
I have also seen this, there were 20 files in the device outbox, adding new files resulted in "Failed to stage file for transfer"
At the same time, on the companion, inbox.pop() resulted in nothing, so this file transfer functionality is not exactly robust.
multiple restarts of the app have not fixed it, the outbox is jammed.
Will try your workaround to see if it fixes the issue
Btw. this is using SDK 4.2.2
haven't tried SDK 5 and probably never will due to the lack of backwards compatibility, The Sense and Versa3 will remain likely remain unsupported for my project.
05-19-2021 09:37
05-19-2021 09:37
I am also having this issue of the outbox getting jammed. Any updates on this?