Pandora-IsoMemo / DSSM

Pandora & IsoMemo spatiotemporal modeling (DSSM)
https://pandora-isomemo.github.io/DSSM/
GNU General Public License v3.0
4 stars 1 forks source link

Fix error if running only locally without internet #157

Closed arunge closed 1 year ago

arunge commented 1 year ago

Via e-mail:

... I consistently encounter "HTTP error 500" after entering the local server address.

arunge commented 1 year ago

I am still trying to identify the problem. I fixed an error that the app does not crash anymore when used offline (version 23.4.1.18). When running R locally (.e.g with RStudio) it works. However, when using the app offline with docker, it reacts very slow, one has to wait ~30 seconds until the import module loads. I already added some timeouts when testing for an available internet connection. However, there is still something not working as intended.

So this is not solved yet. Thanks for your patience!

arunge commented 1 year ago

@isomemo With version 23.06.1 on ios-app beta I reduced the parts in the code where the app checks for an internet connection, and removed bugs that lead the app crash when using it offline.

A check for an internet connection tries to reach a webpage until a timeout, if the page could not be reached within this time, the app assumes that there is no internet connection. Although, the timeout is only 2 seconds and I do only selectively check for a connection, the app is very slow when working offline with docker. I don't know why. There are no such problems when working offline with RStudio.

If one really needs to work offline I therefore would recommend to try the local R installation.

Hopefully, this does solve the issue.