Skip to content

Missing field error

Problem

I have made a request to my deployment which failed and I get an error like this:

Error: Missing field 'prediction' in request output

Solution

The problem is that your deployment did not return an output field that was configured in your deployment. In our case, we have defined an output field prediction, which is not returned in our code. To solve this issue you either need to edit your deployment and remove the output field that is not returned by your code, or you need to adjust your code so that it returns the output fields you configured.