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

Empty name in dme_dns_records #25

Open
hydrapolic opened this issue Sep 25, 2020 · 3 comments
Open

Empty name in dme_dns_records #25

hydrapolic opened this issue Sep 25, 2020 · 3 comments

Comments

@hydrapolic
Copy link

Terraform Version

0.13.3

Affected Resource(s)

  • dme_dns_record

Terraform Configuration Files

resource "dme_dns_record" "record" {
  domain_id = 12345
  name = ""
  type = "HTTPRED"
  ttl = "60"
  value = "https://www.example.com"
  redirect_type = "Standard - 301"
}

Debug Output

2020-09-25T15:39:09.429+0200 [DEBUG] plugin.terraform-provider-dme_v0.1.2: 2020/09/25 15:39:09 Value of recordAttr:  &{  https://www.example.com HTTPRED   60     Standard - 301       }
2020-09-25T15:39:09.429+0200 [DEBUG] plugin.terraform-provider-dme_v0.1.2: 2020/09/25 15:39:09 RECORD VAlues inside model:  &{  https://www.example.com HTTPRED   60     Standard - 301       }
2020-09-25T15:39:09.429+0200 [DEBUG] plugin.terraform-provider-dme_v0.1.2: 2020/09/25 15:39:09 Inside model:after recordmap values:  map[redirectType:Standard - 301 ttl:60 type:HTTPRED value:https://www.example.com]
2020-09-25T15:39:09.429+0200 [DEBUG] plugin.terraform-provider-dme_v0.1.2: 2020/09/25 15:39:09 Payload is : {"redirectType":"Standard - 301","ttl":"60","type":"HTTPRED","value":"https://www.example.com"}
2020-09-25T15:39:09.429+0200 [DEBUG] plugin.terraform-provider-dme_v0.1.2: 2020/09/25 15:39:09 Request made :  &{POST https://api.dnsmadeeasy.com/V2.0/dns/managed/id/records/ HTTP/1.1 1 1 map[Content-Type:[application/json] X-Dnsme-Requestdate:[Fri, 25 Sep 2020 13:39:09 GMT]] {{"redirectType":"Standard - 301","ttl":"60","type":"HTTPRED","value":"https://www.example.com"}} 0x760fc0 97 [] false api.dnsmadeeasy.com map[] map[] <nil> map[]   <nil> <nil> <nil> 0xc000036178}
2020-09-25T15:39:10.322+0200 [DEBUG] plugin.terraform-provider-dme_v0.1.2: 2020/09/25 15:39:10 Response is : &{500 Internal Server Error 500 HTTP/1.1 1 1 map[Content-Type:[text/html;charset=ISO-8859-1] Date:[Fri, 25 Sep 2020 13:38:51 GMT] Server:[Apache-Coyote/1.1] Set-Cookie:[Path=/V2.0; Secure; HttpOnly] 0xc00065a040 -1 [chunked] true false map[] 0xc00010ab00 0xc000469600}
2020-09-25T15:39:10.323+0200 [DEBUG] plugin.terraform-provider-dme_v0.1.2: 2020/09/25 15:39:10 Error returned:  invalid character '<' looking for beginning of value

Expected Behavior

Record added

Actual Behavior

Error: invalid character '<' looking for beginning of value

Steps to Reproduce

  1. terraform apply

References

#3

@eperry
Copy link

eperry commented Sep 25, 2020

I actually ran across this too when testing the import PR, I thought it was do to that change. Good catch

@thijsdev
Copy link

Any news on this? Seems the name argument isn't getting passed in the API call to DME.

@rmetschke
Copy link

I just installed the latest version of this and this behavior is still present. It's been almost 2 years since initially reported and it doesn't look like there has been any traction.

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

4 participants