Closed mnowotka closed 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/
This is an issue with the old webservices that will no longer be maintained apart from data updates.
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/