Why am I getting a create endpoint gateway error with the wrong number of segments in CRN?
When you run an IBM Cloud Schematics plan or apply action, Schematics workspaces produces the endpoint gateway that is failed with wrong number of segments in CRN. Following error message is received.
2022/05/31 12:19:31 Terraform apply | Error: Create Endpoint Gateway failed wrong number of segments in CRN
2022/05/31 12:19:31 Terraform apply | {
2022/05/31 12:19:31 Terraform apply | "StatusCode": 400,
2022/05/31 12:19:31 Terraform apply | "Headers": {
2022/05/31 12:19:31 Terraform apply | "Cache-Control": [
2022/05/31 12:19:31 Terraform apply | "max-age=0, no-cache, no-store, must-revalidate"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Cf-Cache-Status": [
2022/05/31 12:19:31 Terraform apply | "DYNAMIC"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Cf-Ray": [
2022/05/31 12:19:31 Terraform apply | "713fa8882c4b9f0a-DFW"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Content-Length": [
2022/05/31 12:19:31 Terraform apply | "257"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Content-Type": [
2022/05/31 12:19:31 Terraform apply | "application/json"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Date": [
2022/05/31 12:19:31 Terraform apply | "Tue, 31 May 2022 12:19:31 GMT"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Expect-Ct": [
2022/05/31 12:19:31 Terraform apply | "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Expires": [
2022/05/31 12:19:31 Terraform apply | "-1"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Pragma": [
2022/05/31 12:19:31 Terraform apply | "no-cache"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Server": [
2022/05/31 12:19:31 Terraform apply | "cloudflare"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Strict-Transport-Security": [
2022/05/31 12:19:31 Terraform apply | "max-age=31536000; includeSubDomains"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "Vary": [
2022/05/31 12:19:31 Terraform apply | "Accept-Encoding"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "X-Content-Type-Options": [
2022/05/31 12:19:31 Terraform apply | "nosniff"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "X-Request-Id": [
2022/05/31 12:19:31 Terraform apply | "ecxxxxe-8900-4e46-a0f5-aec827c4369e"
2022/05/31 12:19:31 Terraform apply | ],
2022/05/31 12:19:31 Terraform apply | "X-Xss-Protection": [
2022/05/31 12:19:31 Terraform apply | "1; mode=block"
2022/05/31 12:19:31 Terraform apply | ]
2022/05/31 12:19:31 Terraform apply | }
When Schematics runs your script or template on the target resource during the execution, the Schematics cannot resolve errors that occur in user-provided scripts, the apply action is marked as failed.
Follow the steps to troubleshoot the error in your Schematics workspaces:
- From the
Schematics workspaces settings
, select the Schematics apply action that failed. - Click
Jobs
to see the detailed log output. - In the log file, find the last action that Schematics started before the error occurs.
- From the Schematics workspaces settings page, and edit the
create_endpoint_gateway
default value fromtrue
tofalse
. By setting,true
you create a VPE endpoint gateway for Schematics and setfalse
if no endpoint gateway is needed.