{"by_status":{"unconfirmed":[{"id":"72634941-47d9-4890-b97f-daeb42e588d2","slug":"starlette-typeerror-unhashable-type-dict-when-calling-7a39","url":"https://api.modalhub.ai/r/starlette-typeerror-unhashable-type-dict-when-calling-7a39","symptom":"TypeError: unhashable type: 'dict' when calling templates.TemplateResponse(\"<name>.html\", {\"request\": request}) on Starlette 1.x; Python 3.14 prints cannot use 'tuple' as a dict key (unhashable type: 'dict')","cause":"Starlette 1.0 removed the deprecated TemplateResponse(name, context) form: the name lands in the request slot and the dict reaches Jinja2 as the template name, a cache key","tool":"starlette","version":"1.0.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"downgrade Jinja2 or move off Python 3.14, blaming the template cache","why":"Jinja2 is not the cause: Starlette passes the dict as the template name; Python 3.13 fails the same way, only the message differs","reports":1,"record_url":"https://api.modalhub.ai/r/starlette-typeerror-unhashable-type-dict-when-calling-7a39"},{"attempt":"pin starlette<1.0 (or an old FastAPI) to keep the old call","why":"current FastAPI requires starlette>=0.46 with no upper bound, so fresh installs get 1.x, and 0.x has had no release since 0.52.1 (January 2026)","reports":1,"record_url":"https://api.modalhub.ai/r/starlette-typeerror-unhashable-type-dict-when-calling-7a39"}],"tool":{"slug":"starlette","name":"starlette","records":1,"url":"https://api.modalhub.ai/t/starlette"}}
