rcpch / digital-growth-charts-server

RCPCH's open source Digital Growth Chart API
https://growth.rcpch.ac.uk/
GNU Affero General Public License v3.0
16 stars 11 forks source link

Mid parental height endpoint doesn't work #219

Open mbarton opened 3 months ago

mbarton commented 3 months ago
curl -X POST \
  -H 'Content-Type: application/json'
  -d '{"sex":"male","height_paternal": 50,"height_maternal": 50}' \
  http://localhost:8000/utilities/mid-parental-height
Internal Server Error

The underlying error is another validation error similar to #213 and #217

growth-api-1  |   {'type': 'float_type', 'loc': ('response', 'mid_parental_height_upper_centile_data', 0, 'uk90_preterm', 'male', 'height', 0, 'data', 5, 'y'), 'msg': 'Input should be a valid number', 'input': None}

Also seen in the production logs

mbarton commented 3 months ago

Looks like y is null like in https://github.com/rcpch/digital-growth-charts-server/issues/217