Data Capture for DHIS2 (Android) Refusing Connection on 2.36.4

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.

Any help will be of great value.

Thank you

Hello @sybghat . Do you get a specific error message?

it says “Provided server url is not a dhis instance”

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.

Yes i can access the server from my android browser, but not from android capture app.

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 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.

1 Like

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.

Could you share the URL of the server and a testing credentials? (Please send them via PM)

1 Like

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”
relaxedQueryChars="[]" />

1 Like

Thank you for sharing @sybghat! :slightly_smiling_face::+1: