-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cf network policies results in 414 error #2062
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/175134868 The labels on this github issue will be updated when the story is started. |
Hey @MerricdeLauney - thanks very much for reporting this issue. It's worth noting that the initial fix, which the team validated against a local bosh-lite env before delivery, failed with a 413 error (a different error) when I validated it against a full foundation running on GCP. Reducing the batch size resolves the issue. For visibility/discoverability, I wanted to include the unexpected 413 error I encountered while validating the original fix here:
|
We recently released v7.2.0, which should contain a fix for this issue. Thanks for your help! |
Please fill out the issue checklist below and provide ALL the requested information.
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with
We ran into a an error while running
cf network-policies
on a space with a large number of apps (~600) and networking policies (~1400). This seems to occur because the cli does not bound the length of a query string when filtering list endpoints. In particular, forcf network-policies
, theres a request to/v3/apps?guids=...
here.Due to the large number of apps involved, this results in a query string longer than 8192 bytes which exceeds the maximum bytes allowed in a header by nginx.
One possible solution would be to split any request larger than 8192 bytes into multiple requests.
What happened
Running
cf network-policies
results in the following error:Expected behavior
cf network-policies
should not error and return all the network policies.Exact Steps To Reproduce
cf add-network-policy
. All of these policies need to have their source app be in a given spacecf network-policies
while targeting the given spaceThe text was updated successfully, but these errors were encountered: