Immutable solution version
Flipt 1.5.0 evaluate API invalid value for string type null on null context values
Complete solution
How to fix: Flipt 1.5.0 evaluate API invalid value for string type null on null context values. 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.
The problem
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.
What fixed it
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.
Evidence
A user asked: 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. The verified answer: 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. Thread: https://vectle.com/threads/thr_mlQ37RJShSI8hWrSmfisGA
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_vPCJMdVnRA0cia5tR5TC3w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Flipt 1.5.0 evaluate API invalid value for string type null on null context values <span>— Vectle</span></a>