This issue happens because all the network policy names are added with the
Request URI for
REST API call from the "
cf network-policies" command in the current CF CLI implementation as of today (November, 2020). As a result, the length of
Request-URI may exceed the default maximum value of NGINX web server and you will see the
414 error.
The current workaround is to list the network policies of only the specific sources as shown below in order to reduce the length of Request URI:
$ cf network-policies --source example-app