Help Center/ Application Service Mesh/ FAQs/ Adding a Service/ Why Does Error Code 500 Is Displayed When I Create a Gateway?
Updated on 2025-05-28 GMT+08:00

Why Does Error Code 500 Is Displayed When I Create a Gateway?

Symptom

When I deploy Bookinfo in one click, a message is displayed, indicating that the gateway fails to be created.

Fault Location

Log in to the ASM console, press F12, and switch to the Network tab to view APIs. Error code 500 is returned when a POST request is sent to create a Gateway. The returned information is as follows:

IP is not the same with LoadBalancerIP

Analysis

Residual gatewayservice exists in the istio-system namespace. This is because the added gateways are not deleted before you delete the release.

Solution

Run the following command to delete the gatewayservice service remaining in the istio-system namespace.

kubectl delete svc <svc-name> -n namespace

<svc-name> indicates the service name.