HL7 / fhir-ig-publisher

Source code for the IG publisher
Apache License 2.0
72 stars 57 forks source link

Error at the end of IG publishing : JSON Eof at Line 1 #820

Open nriss opened 1 year ago

nriss commented 1 year ago

I have an error at the end of the publication of my IG, but the error is not explicit, can you make this error more explicit ?

image

https://github.com/ansforge/IG-securisation-transport-api-rest/actions/runs/7091156384/job/19299697925

Publisher version : tried with latest & 1.4.16

Command :

sudo java -jar /Users/nicolasriss/Desktop/ANSFORGE_ans-ig/IG-securisation-transport-api-rest/input-cache/publisher.jar -go-publish -source /Users/nicolasriss/Desktop/ANSFORGE_ans-ig/IG-securisation-transport-api-rest -web /Library/WebServer/Documents/IG-website-release/www/ig -registry /Library/WebServer/Documents/IG-website-release/ig-registry/fhir-ig-list.json -history /Library/WebServer/Documents/IG-website-release/fhir-ig-history-template -templates /Library/WebServer/Documents/IG-website-release/templates -temp /Library/WebServer/Documents/tmp

Thanks!

nriss commented 12 months ago

The problem has been identified by @M-priour : we created an empty file package-registry.json

Writing a json file following this template resolved the problem

lmckenzi commented 12 months ago

Will update the publisher to catch exceptions when parsing and at least tell you the file it had trouble parsing.