Hello everyone, i have a dhis2 server V 2.41 and im trying to connect on the capture V 3.3.1, then i get this error message “This URL is not a dhis2 server”, need help guys.
the capture mobile I guess ?
the capture app probably check a known api that is supposed to work on most dhis2 like https://play.im.dhis2.org/stable-2-41-8/api/system/info that returns the version of dhis2
is this a public instance on the internet ?
if yes can you verify you can access the https://your-url-domain.../api/system/info url (with the user/password) ?
is this a local instance on your laptop ?
your mobile and dhis2 should be on the same network/wifi
I think there was a requirement for android apps to have https so you might need something like ngrok and expose your laptop on the internet via this tool
Yes it’s a public instance
does it serve the dhis2 over a https ? is it a valid certificate ?
does the url you typed in mobile capture works in a browser of your android phone/tablet ?
no it serve without https, yes the url i typed in mobile capture works in a browser of the android phone
When i type http://MyURL/api/system/info, i got back a json object
perhaps @Gassim can help you further ?
Welcome to the DHIS2 Community! ![]()
If you enter: Login app | DHIS2 as the server url and the username admin and the password district, are you able to login? If you get the JSON object while trying to login using this instance, could you share it here?
I’ll double check with @dhis2-android team whether it’s possible to access instances that don’t have certificate i.e. no https using the Android Capture app without any setting/configuration changes.
@Stephan_Mestach thanks for the help - good debugging questions, and thank you for the tag too! ![]()
@Stephan_Mestach @Gassim Thanks a lot for help.
When i worked with V 2.40 it works without certificate, but i migrate to V 2.41 because of Text with multiple values, and then i got this error message.
Hi @Gassim Yes im able to login with admin as username and district as password
Hi @Algabid_Adam I’m with the Android SDK team, I was able to login to a http server using the 3.3.1 version of the Android App without any issues. Could you please share just the public URL with me via private message so I can properly debug your issue? No credentials needed, just the URL. Thanks!
you might be interested or your server admin to attend
https is really helping security, without it your user/password are sent as clear text and might be easily collected.
Hi @Daniel_Tari sorry for replying late, could you please share your email?
Thanks a lot @Stephan_Mestach i appreciate
Hi @Algabid_Adam , I sent you a private message on this platform, please reply to it with the URL, thanks.
