chembl / chembl_webservices_2

Source code of the ChEMBL web services.
https://www.ebi.ac.uk/chembl/ws
Other
16 stars 3 forks source link

UnreadablePostError #130

Closed mnowotka closed 6 years ago

mnowotka commented 6 years ago

If the POST request have an empty body the UnreadablePostError will be thrown which currently is not handled and causes http status code 500. This should be 400 instead as this is a bad request.

The error is described in detail here: http://sark.ebi.ac.uk:9000/chembl/chembl_webservices/issues/618/

The UnreadablePostError comes from Django and is documented here: https://docs.djangoproject.com/en/1.11/ref/exceptions/

mnowotka commented 6 years ago

This is an issue with the old webservices that will no longer be maintained apart from data updates.