Hi there, I m setting up data exchange on 2 dhis2 instance, the source has version 2.39 and destination has 2.38.
I mapped everything and I can see data on UI, when I send data I get this msg: There was a problem submitting data
It was not possible to submit your data. The message below provides additional detail.I/O error on POST request for “https://url/api/dataValueSets”: Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused) any hint on what else to configure?
1 Like
Hi @mutali
At this point, it’s not clear why the connection is refused. Maybe share more details about the steps that you took and the guide you followed or if possible to get more info from the logs?
Thanks!
It will require whitelisting the URL in the destination instance so that it can allow the connection. Go to settings under access and add CORS whitelist
1 Like
On addition to Patrick’s submission,
Is this “https://url/api/dataValueSets” in the error message as is or you just replaced the actual domain name with the url?
If it is the way it is, then you might need to update the URL to the correct FQDN (with a working domain name to replace the url).
Regards
1 Like