aptible / terraform-provider-aptible

The official Terraform provider for Aptible Deploy
https://registry.terraform.io/providers/aptible/aptible/latest
10 stars 13 forks source link

Poorly formatted endpoint error message #68

Closed Jrc356 closed 2 years ago

Jrc356 commented 2 years ago

See #67 for more details on context. If endpoint creation fails, the error message seems to be a pointer rather than the string.

Error message:

│ Error: [POST /services/{service_id}/vhosts][422] PostServicesServiceIDVhosts default  &{Code:0x14000034350 Error:0x140006480f0 Message:0x14000648100}
Jrc356 commented 2 years ago

From what I can tell, the error originates here in go-deploy

https://github.com/aptible/go-deploy/blob/60d002576e00aa34774dbfe6055add0023a2a7b6/aptible/endpoints.go#L73

EDIT: maybe not... I would expect this log if it were from the client 🤔 https://github.com/aptible/terraform-provider-aptible/blob/24e4369350f5c4bfdf773b7c5c0fd92966ddd5f3/aptible/resource_endpoint.go#L180-L184

Jrc356 commented 2 years ago

I believe this is closed by https://github.com/aptible/terraform-provider-aptible/pull/69