ns1-go icon indicating copy to clipboard operation
ns1-go copied to clipboard

`User.last_access` mistype with int

Open chenrui333 opened this issue 4 years ago • 5 comments

Right now User.last_access mis-typed with int type, which caused unmarshal issue.

json: cannot unmarshal number 1591550213.0 into Go struct field User.last_access of type int

chenrui333 avatar Jun 07 '20 23:06 chenrui333

Hi @chenrui333 - thanks for bringing this to our attention. Can you provide what version of the SDK you are using and any steps you are taking to re-create this? We're currently using float64 for the internal type of that field, so that error message is a bit cryptic to me without more information. Thanks!

Zach-Johnson avatar Jun 11 '20 15:06 Zach-Johnson

@Zach-Johnson I am using go-ns1 2.4.0 and provider v1.8.3 (which is what I used for terraformer support)

chenrui333 avatar Jun 11 '20 17:06 chenrui333

I should turn on the debug logging for more insights (will provide when I have some time)

chenrui333 avatar Jun 11 '20 17:06 chenrui333

@chenrui333 that would be super helpful - if this is specifically around the Terraform provider, it would also be useful if you could provide a sample Terraform config that you are using to test.

Zach-Johnson avatar Jun 11 '20 19:06 Zach-Johnson

@chenrui333 Any updates on this issue?

pcatalini avatar Sep 22 '21 17:09 pcatalini

Closing due to lack of activity. If problem persists, please try to reproduce with the current releases of Terraform and the NS1 Terraform provider and create a new issue, or open a support ticket with NS1.

eravin-ns1 avatar Dec 13 '22 21:12 eravin-ns1