ctmm-initiative / ctmmweb

Web app for analyzing animal tracking data, built upon ctmm R package
http://biology.umd.edu/movement.html
GNU General Public License v3.0
34 stars 22 forks source link

Save Progress bug in hosted app #115

Closed xhdong-umd closed 4 years ago

xhdong-umd commented 4 years ago

In hosted app, save progress failed to download the data zip. The bug seemed to be specific in hosted mode, as the same version don't have problem in local.

It's quite difficult to debug this kind of problem, as I cannot use browser() call to inspect the app state interactively. I have to make some guesses, print some messages to help to pin down the problem range, and need to update and deploy the app for every change.

xhdong-umd commented 4 years ago

It turned out to be related to a feature to save error log as part of download. In local this have no problem, but in hosted mode the error log is captured, connection redirected, which make the manipulation on connection very fragile.

In the end I have to disable this feature, it's not critical anyway. In local mode user can see it from R console, in hosted mode I can get the log from server. It's hard to rely on this to work with something wrong.

The hosted app is updated and with save progress button working now.