TripSit / tripmobile

TripSit mobile app for Android
GNU General Public License v3.0
12 stars 4 forks source link

Factsheets can't connect to DB #48

Open LunaUrsa opened 3 years ago

LunaUrsa commented 3 years ago

When opening factsheets an error appears:

"Could not retrieve drug names from tripbot interface. Search may still work but autocomplete suggestions will not be present"

tacerus commented 3 years ago

Originally it was the Combo section, if the Factsheet section isn't working now as well we'd really need someone to look into the source code to see what it tries to connect to.

LunaUrsa commented 3 years ago

This particular issue is a result of the URL needing to be HTTPS.

Changed the DrugNameAsyncTask.java line from:

private static final String ALL_DRUGS_URL = "http://tripbot.tripsit.me/api/tripsit/getAllDrugNames";

To:

private static final String ALL_DRUGS_URL = "https://tripbot.tripsit.me/api/tripsit/getAllDrugNames";

tacerus commented 3 years ago

Can we apply the same solution to #49 ?

LunaUrsa commented 3 years ago

I don't believe so, but i will take a look

LunaUrsa commented 3 years ago

Pushed my branch up, commit for this fix is here: https://github.com/TripSit/tripmobile/commit/aa6f3a49348bd3d0f2a924b05b8f0ffc92d54ab1

LunaUrsa commented 3 years ago

Yeah it turned out to be the same issue. Why it would crash in combos but not factsheets is weird but okay, pushed up my commit here: https://github.com/TripSit/tripmobile/commit/d051eeaaaa0d7c2620729dea8d306312db280248