Skip to content
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

400 error when module tries to set up bgp connection to network edge device #1

Open
cprivitere opened this issue Jun 27, 2022 · 0 comments

Comments

@cprivitere
Copy link
Member

When attempting to make the bgp connection between AWS and the Network Edge switch, I got a 400 error.

So when it got to this step:

module.equinix-fabric-connection-aws.equinix_network_bgp.this[0]: Creating...

It hits this error:

 Error: Equinix REST API error: Message: "Bad Request", HTTPCode: 400, ApplicationErrors: [Code: "EQ-4000023", Property: "", Message: "Limited to 6 to 80 characters and can contain most special characters", AdditionalInfo: ""] 

   with module.equinix-fabric-connection-aws.equinix_network_bgp.this[0],
   on .terraform/modules/equinix-fabric-connection-aws/main.tf line 84, in resource "equinix_network_bgp" "this":
   84: resource "equinix_network_bgp" "this" {
 

Here's the request terraform sent:

---[ REQUEST ]---------------------------------------
POST /ne/v1/bgp HTTP/1.1
Host: api.equinix.com
User-Agent: HashiCorp Terraform/1.2.3 (+https://www.terraform.io) Terraform Plugin SDK/2.9.0 terraform-provider-equinix/dev equinix/ne-go
Content-Length: 205
Accept: application/json
Content-Type: application/json
Accept-Encoding: gzip

{
 "connectionUuid": "********-****-****-****-***********",
 "localIpAddress": "169.254.0.2/30",
 "localAsn": 65000,
 "remoteAsn": 64512,
 "remoteIpAddress": "169.254.0.1",
 "authenticationKey": "0xN4Fr1issiekPad.iAq1mL5"
}

And here's the result received:

---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 345
Content-Type: application/json;charset=UTF-8
Date: Mon, 27 Jun 2022 21:28:48 GMT
Server: istio-envoy
X-Application-Context: nfv-services-microservice:prod_aws_usw1:9030
X-Envoy-Upstream-Service-Time: 183

[
 {
  "errorCode": "EQ-4000023",
  "errorMessage": "Limited to 6 to 80 characters and can contain most special characters",
  "help": "https://<domain.name>/help/error/EQ-4000023",
  "details": "Please confirm the data types and values in the request body, then try again.",
  "correlationId": null,
  "additionalInfo": [
   {
    "property": "authenticationKey",
    "reason": null
   }
  ]
 }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant