What is the reason for 500 internal server error?

The 500 Internal Server error could be caused by an error during the execution of any policy within Edge or by an error on the target/backend server. The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request.

For More Information Please Refer: https://docs.apigee.com/api-platform/troubleshoot/runtime/500-internal-server-error-0