Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factsheets can't connect to DB #48

Open
LunaUrsa opened this issue Dec 29, 2020 · 6 comments
Open

Factsheets can't connect to DB #48

LunaUrsa opened this issue Dec 29, 2020 · 6 comments

Comments

@LunaUrsa
Copy link
Contributor

LunaUrsa commented Dec 29, 2020

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
Copy link

tacerus commented Dec 29, 2020

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
Copy link
Contributor Author

LunaUrsa commented Dec 29, 2020

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
Copy link

tacerus commented Dec 29, 2020

Can we apply the same solution to #49 ?

@LunaUrsa
Copy link
Contributor Author

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

@LunaUrsa
Copy link
Contributor Author

LunaUrsa commented Dec 29, 2020

Pushed my branch up, commit for this fix is here: aa6f3a4

@LunaUrsa
Copy link
Contributor Author

LunaUrsa commented Dec 29, 2020

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: d051eea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants