You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you add new items to a relationship field the system will query which items should be listed. The query will have a not_in list so that currently selected items will not show up again in the list to add again. When you have a lot of items this not_in list will become quite large. As the query to show the options is a GET request it will eventually fail with 431 (Request Header Fields Too Large) when the number of items in the relationship field makes the query too long for what is allowed by browser/http standard.
Fixes: #6486
Adds `X-HTTP-Method-Override` header to allow for sending query params in the body of a POST request. This is useful when the query param string hits the upper limit.
Link to reproduction
No response
Payload Version
3.0.0-beta.36
Node Version
v22.1.0
Next.js Version
15.0.0-rc.0
Describe the Bug
When you add new items to a relationship field the system will query which items should be listed. The query will have a not_in list so that currently selected items will not show up again in the list to add again. When you have a lot of items this not_in list will become quite large. As the query to show the options is a GET request it will eventually fail with 431 (Request Header Fields Too Large) when the number of items in the relationship field makes the query too long for what is allowed by browser/http standard.
Ref discussion #1977
Reproduction Steps
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: