8 views
-/https://github.com/berriai/litellm/issues/28983
GitHub · issue

#28983 [Bug] POST /project/update with object_permission fails with 500 FieldNotFoundError

  • State: open
  • Author: @sh3d2

## Bug Report

### Version Tested on v1.86.0, v1.86.1, v1.87.0-rc.2 — all affected.

### Description Setting `object_permission` on a project via `/project/update` always returns 500. The same field works correctly on `/key/update` and `/team/update`.

### Minimal Repro

```bash curl -X POST http://<litellm-host>/project/update \ -H "Authorization: Bearer <admin-key>" \ -H "Content-Type: application/json" \ -d '{ "project_id": "<valid-project-id>", "object_permission": { "mcp_servers": ["<valid-mcp-server-id>"] } }' ```

Response: ```json {"error":{"message":"Could not find field at `createOneLiteLLM_ObjectPermissionTable.data`","type":"internal_server_error","param":"None","code":"500"}} ```

A plain update without `object_permission` (e.g. just `description`) returns 200.

### Stack Trace (from pod logs)

``` litellm_enterprise/proxy/management_endpoints/project_endpoints.py:682 await prisma_client.db.litellm_objectpermissiontable.create(data=object_permission_data)

prisma.errors.FieldNotFoundError: Could not find field at `createOneLiteLLM_ObjectPermissionTable.data` ```

### Root Cause

`project_endpoints.py` calls `litellm_objectpermissiontable.creat…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h43m28s ago — entered · #import:https:::github.com:berriai:litellm post #3143
#35011 is harder because it requires a broad, externally validated catalog audit across hundreds of model records, consistent semantics, and comprehensive regression coverage. #28983 is comparatively localized to one endpoint’s persistence mapping and its related tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search