ContentMine / old_site

The contentmine site, which (currently) includes the API
MIT License
4 stars 1 forks source link

500 error on catalogue submit #162

Closed blahah closed 9 years ago

blahah commented 9 years ago

After changes made to the API today, I now get a 500 error when submitting to the catalogue. This is a new error because the submission code and data are the same as yesterday.

Example submitted data:

{
  "title": "Interferon Beta and Vitamin D Synergize to Induce Immunoregulatory Receptors on Peripheral Blood Monocytes of Multiple Sclerosis Patients",
  "description": "<p><a href=\"http://feeds.plos.org/~r/plosone/PLoSONE/~3/Hda8yDcf5Tw/info%3Adoi%2F10.1371%2Fjournal.pone.0115488\"><b>Interferon Beta and Vitamin D Synergize to Induce Immunoregulatory Receptors on Peripheral Blood Monocytes of Multiple Sclerosis Patients</b></A><br />Anne Waschbisch et al. <br /><i>PLoS ONE, Vol. , No.  (2014) pp.  - </i><br />by Anne Waschbisch, Nicholas Sanderson, Markus Krumbholz, George Vlad, Diethilde Theil, Stefan Schwab, Mathias M&#228;urer, Tobias Derfuss\r\n\r\nImmunoglobulin-like transcript (ILT) 3 and 4 are inhibitory receptors that modulate immune responses. Their expression has been reported to be affected by interferon, offering a possible mechanism by which this cytokine exerts its therapeutic effect in multiple sclerosis, a condition thought to involve excessive immune activity. To investigate this possibility, we measured expression of ILT3 and ILT4 on immune cells from multiple sclerosis patients, and in post-mortem brain tissue. We also studied the ability of interferon beta, alone or in combination with vitamin D, to induce upregulation of these receptors in vitro, and compared expression levels between interferon-treated and untreated multiple sclerosis patients. In vitro interferon beta treatment led to a robust upregulation of ILT3 and ILT4 on monocytes, and dihydroxyvitamin D3 increased expression of ILT3 but not ILT4. ILT3 was abundant in demyelinating lesions in postmortem brain, and expression on monocytes in the cerebrospinal fluid was higher than in peripheral blood, suggesting that the central nervous system milieu induces ILT3, or that ILT3 positive monocytes preferentially enter the brain. Our data are consistent with involvement of ILT3 and ILT4 in the modulation of immune responsiveness in multiple sclerosis by both interferon and vitamin D.</p>",
  "summary": "by Anne Waschbisch, Nicholas Sanderson, Markus Krumbholz, George Vlad, Diethilde Theil, Stefan Schwab, Mathias Mäurer, Tobias Derfuss\r<br>\n\r<br>\nImmunoglobulin-like transcript (ILT) 3 and 4 are inhibitory receptors that modulate immune responses. Their expression has been reported to be affected by interferon, offering a possible mechanism by which this cytokine exerts its therapeutic effect in multiple sclerosis, a condition thought to involve excessive immune activity. To investigate this possibility, we measured expression of ILT3 and ILT4 on immune cells from multiple sclerosis patients, and in post-mortem brain tissue. We also studied the ability of interferon beta, alone or in combination with vitamin D, to induce upregulation of these receptors in vitro, and compared expression levels between interferon-treated and untreated multiple sclerosis patients. In vitro interferon beta treatment led to a robust upregulation of ILT3 and ILT4 on monocytes, and dihydroxyvitamin D3 increased expression of ILT3 but not ILT4. ILT3 was abundant in demyelinating lesions in postmortem brain, and expression on monocytes in the cerebrospinal fluid was higher than in peripheral blood, suggesting that the central nervous system milieu induces ILT3, or that ILT3 positive monocytes preferentially enter the brain. Our data are consistent with involvement of ILT3 and ILT4 in the modulation of immune responsiveness in multiple sclerosis by both interferon and vitamin D.",
  "publisher": {
    "name": "Public Library of Science (PLoS)"
  },
  "journal": {
    "name": "PLoS ONE",
    "issn": "1932-6203"
  },
  "link": [
    {
      "url": "http://feeds.plos.org/~r/plosone/PLoSONE/~3/Hda8yDcf5Tw/info%3Adoi%2F10.1371%2Fjournal.pone.0115488"
    }
  ],
  "date": {
    "published": "2014-12-31T22:00:00+00:00"
  },
  "identifier": [
    {
      "type": "doi",
      "id": "10.1371/journal.pone.0115488"
    }
  ],
  "author": [
    "Anne Waschbisch et al."
  ]
}
markmacgillivray commented 9 years ago

This was due to a missed failing in the date parsing. It has now been set to specifically allow our usual date format yyyy-MM-dd mmss OR date_optional_time which should handle 2014-12-31T22:00:00+00:00. Additional date formats could be added back in if necessary, see list at http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-date-format.html