microsimulation / ijm

A central place for general issues, documents, scripts and resources for the IJM
https://microsimulation.org/ijm/
MIT License
4 stars 0 forks source link

(Bug) Article 00089 fails to load with http500 #22

Closed astrajescu closed 4 years ago

astrajescu commented 4 years ago

An article page fails with error - "Value "" is blank, but was expected to contain a value. Link to the article: http://microsimulation.pub/articles/00089

Annotation 2020-07-27 151029

astrajescu commented 4 years ago

The article title is "The COMPARE Microsimulation Model and the U.S. Affordable Care Act" from Volume 6(3).

astrajescu commented 4 years ago

While investigating this issue, the developers found that there is section in JSON file 'acronyms' which, because it is null, is failing to load the entire article. After some experiments with this section (by the way it is the only file with such a section and maybe that's the reason of failing - maybe the conversion algorithm does not recognize such section) we've found that if we remove it from JSON file, the article will successfully load on the site, so for now we have implemented this as a solution to show the article. However we need Graham @gnott to come up with his vision of a permanent solution.

gnott commented 4 years ago

I think the ultimate cause of the error is this section in the JSON, where the content is blank:

    "appendices": [
        {
            "content": [],
            "id": "A1",
            "title": "Acronyms"
        }
    ],

It may be something @FAtherden-eLife would want to be included in, because the article XML itself may require changing for the appendix content to be extracted in the conversion process.

fred-atherden commented 4 years ago

I have asked Exeter to redeliver this content captured in a separate way (as tables in an appendix), which should mean that we can render the content and avoid this error.