-
Notifications
You must be signed in to change notification settings - Fork 140
unmarshal string into Go struct field .code of type int #2
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
Comments
Thanks for reporting this, but I cannot reproduce this bug, it seems API doesn't return correct information as the document promised. Can you please open terraform debug log, like |
but it should be
|
can you attach the full log? if you feel too hard to mask the sensitive data, you can directly send it to [email protected] |
@MartinForReal Hi, is there any update for this issue? We need advanced info to help us reproduce the problem and fix it. Thanks |
Hi @zqfan, I encountered this same error, but for a resource of type tencentcloud_cbs_storage:
Do you believe these errors have the same origin? |
I think they both are caused by inconsistent APIs' response, sometimes API returns int type code, sometimes string while go expects int type then it fails |
Hello @lubars |
Hello @MartinForReal |
If there is any problems, please open a new issue. |
Merge pull request #420 from Himer/master
[add datasource and enhance testacc]
# This is the 1st commit message: 修改拼写错误 favorate -> favorite, 解决 https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/instance 中的错误 添加支持 clb 创建目标工作组的逻辑,添加相应函数的参数 修复新添加的命令行参数错误,Elem字段使用 schema.Resource指针 添加安全组对内网clb的支持(注释掉对当前网络是否为内网的判断) 添加支持开启和关闭CLB安全组默认放通的配置 添加terraform支持external CLB创建AZ实例 添加clb创建目标工作组中,调用create后的update操作中的 port 字段 添加create中调用update操作时,设置load_balancer_pass_to_target 修改在 resourceTencentCloudClbInstanceUpdate 中对 LoadBalancerPassToTarget 取值的处理,修复 tf 文件该值有变化时,没有触发更改的问题 修改支持internal CLB的security group 中description注释部分 添加调用 CreateClusterInstances时,传入imageId参数来指定镜像,以及对镜像的验证,满足 img-xxx 的格式 # This is the commit message #2: 回退版本(添加镜像),该文件不再维护
* 修改拼写错误 favorate -> favorite, 解决 https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/instance 中的错误 * 添加支持 clb 创建目标工作组的逻辑,添加相应函数的参数 * 修复新添加的命令行参数错误,Elem字段使用 schema.Resource指针 * 添加安全组对内网clb的支持(注释掉对当前网络是否为内网的判断) * 添加支持开启和关闭CLB安全组默认放通的配置 * 添加terraform支持external CLB创建AZ实例 * 添加clb创建目标工作组中,调用create后的update操作中的 port 字段 * 添加create中调用update操作时,设置load_balancer_pass_to_target * 修改在 resourceTencentCloudClbInstanceUpdate 中对 LoadBalancerPassToTarget 取值的处理,修复 tf 文件该值有变化时,没有触发更改的问题 * 修改支持internal CLB的security group 中description注释部分 * 添加调用 CreateClusterInstances时,传入imageId参数来指定镜像,以及对镜像的验证,满足 img-xxx 的格式 * 回退版本(添加镜像),该文件不再维护 * 修改命令行参数的key, os -> img_id * 修改tke资源is_non_static_ip_mode描述不当的错误, static -> non-static * 添加Update操作对Port的支持 * 需求 支持external CLB创建多AZ实例 Description添加master_zone及查询结果相应的字段 * 添加测试用命,及 hcl 测试说明文档注释 * 添加测试用命,及 hcl 测试说明文档注释 * 添加创建多实例,开启和关闭CLB安全组默认放通测试用例 * 完善测试文件 * 添加AS的参数 MultiZoneSubnetPolicy ,支持多可用区(子网)打散 * gendoc * change changelog.md * # This is a combination of 2 commits. # This is the 1st commit message: 修改拼写错误 favorate -> favorite, 解决 https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/instance 中的错误 添加支持 clb 创建目标工作组的逻辑,添加相应函数的参数 修复新添加的命令行参数错误,Elem字段使用 schema.Resource指针 添加安全组对内网clb的支持(注释掉对当前网络是否为内网的判断) 添加支持开启和关闭CLB安全组默认放通的配置 添加terraform支持external CLB创建AZ实例 添加clb创建目标工作组中,调用create后的update操作中的 port 字段 添加create中调用update操作时,设置load_balancer_pass_to_target 修改在 resourceTencentCloudClbInstanceUpdate 中对 LoadBalancerPassToTarget 取值的处理,修复 tf 文件该值有变化时,没有触发更改的问题 修改支持internal CLB的security group 中description注释部分 添加调用 CreateClusterInstances时,传入imageId参数来指定镜像,以及对镜像的验证,满足 img-xxx 的格式 # This is the commit message #2: 回退版本(添加镜像),该文件不再维护 * 修改拼写错误 favorate -> favorite, 解决 https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/instance 中的错误 添加支持 clb 创建目标工作组的逻辑,添加相应函数的参数 修复新添加的命令行参数错误,Elem字段使用 schema.Resource指针 添加安全组对内网clb的支持(注释掉对当前网络是否为内网的判断) 添加支持开启和关闭CLB安全组默认放通的配置 添加terraform支持external CLB创建AZ实例 添加clb创建目标工作组中,调用create后的update操作中的 port 字段 添加create中调用update操作时,设置load_balancer_pass_to_target 修改在 resourceTencentCloudClbInstanceUpdate 中对 LoadBalancerPassToTarget 取值的处理,修复 tf 文件该值有变化时,没有触发更改的问题 修改支持internal CLB的security group 中description注释部分 添加调用 CreateClusterInstances时,传入imageId参数来指定镜像,以及对镜像的验证,满足 img-xxx 的格式 回退版本(添加镜像),该文件不再维护 修改命令行参数的key, os -> img_id 修改tke资源is_non_static_ip_mode描述不当的错误, static -> non-static 添加Update操作对Port的支持 需求 支持external CLB创建多AZ实例 Description添加master_zone及查询结果相应的字段 添加测试用命,及 hcl 测试说明文档注释 添加测试用命,及 hcl 测试说明文档注释 添加创建多实例,开启和关闭CLB安全组默认放通测试用例 完善测试文件 添加AS的参数 MultiZoneSubnetPolicy ,支持多可用区(子网)打散 gendoc change changelog.md * change changelog.md: tencentcloud_container_cluster_instance -> tencentcloud_kubernetes_clusters * change CHANGELOG.md version info Co-authored-by: ivan <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
I got this error when creating security group resource using terraform plugin
It seems that I don't have access to creating security group
The text was updated successfully, but these errors were encountered: