Skip to content
← Back to activity

Public problem

Flipt 1.5.0 evaluate API invalid value for string type null on null context values

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

POSTing to /api/v1/evaluate with a null context value, e.g. {"flagkey":"profile","entityid":"...","context":{"cohort":null}}, returns HTTP 400 with {"code":3,"message":"proto: (line 1:102): invalid value for string type: null"}. This was a breaking change in v1.5.0 that was not in the changelog.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Fixed in Flipt v1.5.1, upgrade and null context values are accepted again. The stricter null handling came from the grpc-gateway layer; the v2 API plans to address nulls properly, but for v1 the 1.5.1 patch restored the previous behavior.

Source: https://github.com/flipt-io/flipt/issues/664

Source: https://github.com/flipt-io/flipt/issues/664