Forums Issues

HeyWatch Download status issue

Subscribe to HeyWatch Download status issue 1 post, 1 voice

 
Avatar Melinda 2 posts

I have been using Hey!Watch in production for quite a while without issue, but just recently a problem has come up. I am using the HeyWatch gem (version 0.0.1) . The problem is in HeyWatch::Download—I am calling this with a block, so that I can wait on it, showing download progress.

What’s happening is when I first get into the progress method, the download.status is “pending”. This status falls through the whole method and ends up returning nil.

However, if I change the first line in the method from

while download.status  "downloading"

to

while download.status  "downloading" || download.status == "pending"

then everything works as expected, as it used to.

I assume the problem is that something changed with the REST API. Will you guys revert the behavior, or update the gem?

Thanks! -Melinda

Forums Issues