Thanks for reading this post. I have issue on 2.36.4 version of DHIS2. Android capture app is refusing to connect with my server. Do i need to downgrade my version? its working fine and connecting to DHIS2 2.32 version.
Can you please try to access that URL from the web browser or your Android to discard any communication issue? If you can access the URL from the browser it means that there is not network block at any level.
Hey,
I’m not sure if this is the issue, but in your browser, are you using HTTPS or HTTP? If HTTP is the one used when logging through the browser then HTTP must be used in the URL when accessing through the app.
I’d also suggest trying to access any one of the instances from play.dhis2.org to see if your app is connecting to the internet successfully. Hope it works!
I think @Gassim is right. You need to make sure that you are using a full valid URL and you should include http:// or https:// before. I think the error you are getting is produced whenever you type http instead of https. Please try and let us kno.
yes i am accessing it via http from Browser and writing same URL in android app too. The thing that surprised me is that i can access another local server with same app, the only thing that is different in both server is the version. I can access DHIS2 version 2.32 server while 2.36.4 is not accessible.
Thank you so much i found that error was generated due to missing relaxedQueryChars=“[]” line in server.xml file.
I added it and every thing is working fine Now.
here is complete configuration:
< Connector port=“8080” protocol=“HTTP/1.1”
connectionTimeout=“20000”
redirectPort=“8443”
relaxedQueryChars=“[]” />