Here is the error i am getting when trying to import concepts to OpenMRS from Open Concept Lab
HTTP/1.1 204 No Content caused by: java.io.IOException: HTTP/1.1 204 No Content at org.openmrs.module.openconceptlab.client.OclClient.executeExportRequest(OclClient.java:138) at org.openmrs.module.openconceptlab.client.OclClient.fetchOclConcepts(OclClient.java:129) at org.openmrs.module.openconceptlab.client.OclClient.fetchOclConcepts(OclClient.java:210) at org.openmrs.module.openconceptlab.importer.Importer$2.run(Importer.java:152)
Assuming you have a version of your collection / dictionary called 031 that all looks correct. The “No Content” response, though, is from the OCL server itself.
Hi @opensolutions and @ibacher , I started looking into this and I think you might have found a bug. I let our developer know about this, so I will update you with more information once it’s available.
Maybe it was a temporary bug or it has been fixed? When I visit that URL, I get a zipped export.json file containing a collection with 12 concepts and 9 mappings.
Hi @wamz, is there a link to the dictionary you are having an issue with? Please feel free to Slack message me directly (@Joe Amlung) on the OpenMRS Slack if it’s not appropriate to post it here. Hopefully I can verify and troubleshoot the issue.
I am getting the same error as before not sure what happened. From the screen shot you can see the first time i got the error then it worked and now getting the same error again.
Is it perhaps because there is no export version queued? I clicked the button to download the Export Version and there is not an export available (which there should have been one created automatically but maybe the system missed it?).
I am still getting the same error. When i got the error last time you said that it might have been a bug?
HTTP/1.1 204 No Content caused by: java.io.IOException: HTTP/1.1 204 No Content at org.openmrs.module.openconceptlab.client.OclClient.executeExportRequest(OclClient.java:138) at org.openmrs.module.openconceptlab.client.OclClient.fetchOclConcepts(OclClient.java:129) at org.openmrs.module.openconceptlab.client.OclClient.fetchOclConcepts(OclClient.java:210) at org.openmrs.module.openconceptlab.importer.Importer$2.run(Importer.java:152)
Yeah, one bug we’ve discovered is that the export is not automatically being created when you create a new version of the collection. It should be automatically created, and then when you point OpenMRS to it, it should be able to get the export without a 204. That fix should be deployed tomorrow.
In the mean time, you may need to queue the export manually (i.e. using the steps I showed in my last message in this post) to avoid getting that 204 error.
However, if you’re still getting the 204 error even when the export is available, then there may be something bigger going on that we may need to do some detailed troubleshooting on.