Trouble setting up DHIS2 connector module

I’ve followed the instructions as in the readme file. But none of the APIs are not working when I launch the module. The endpoints return a 404 error with the following message:

0.7512161errormessage Resource does not exist. Please check documentation for implemented resources and their paths 
[Unknown resource: v1/dhisconnector/dhisdatasets]codeorg.openmrs.module.webservices.rest.web.api.impl.RestServiceImpl:419
detailorg.openmrs.module.webservices.rest.web.response.UnknownResourceException: Unknown resource: v1/dhisconnector/dhisdatasets at org.openmrs.module.webservices.rest.web.api.impl.RestServiceImpl.getResourceByName(RestServiceImpl.java:419) at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
...

I tried installing Rest Web Services 1.9 Extension but it crashes the server.

Do I need to migrate the APIs to v2 in order to make it running?

cc: @k.joseph @dkayiwa @ibacher

2 Likes

Which OpenMRS platform version are you running?

You can either use these versions, or update the module to support newer platform versions.

@jayasanka are you still blocked on this?

Thanks, @herbert24 and Daniel, I managed to fix the issue by adding version 2.* for the supported versions.

1 Like