Git Product home page Git Product logo

Comments (9)

zqfan avatar zqfan commented on June 1, 2024

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 export TF_LOG=DEBUG then run it again, and paste the log here?

from terraform-provider-tencentcloud.

MartinForReal avatar MartinForReal commented on June 1, 2024
2018-10-25T14:26:45.080+0800 [DEBUG] plugin.terraform-provider-tencentcloud_v1.2.2_x4: 2018/10/25 14:26:45 client.go:85: [DEBUG] [tencentcloud-sdk-go] request ended: action=DescribeSecurityGroupEx, url=https://dfw.api.qcloud.com/v2/index.php, params=map[Timestamp:[1540448801] Nonce:[7274928772206554761] Region:[ap-chongqing] Action:[DescribeSecurityGroupEx] projectId:[0] Signature:[] sgId:[sg-046r9ija] SecretId:[]], response={"code":0,"message":"","codeDesc":"Success","data":{"totalNum":0,"detail":[]}}

but it should be

curl -d "Action=DescribeSecurityGroups&Nonce=8117&Region=ap-chongqing&SecretId=AKID5ybBXdZ1KOCj03dOuDGAoDNHvQilLAXm&SecurityGroupIds.0=sg-046r9ija&Signature=****&Timestamp=1540449406&Version=2017-03-12" "https://vpc.ap-chongqing.tencentcloudapi.com"

from terraform-provider-tencentcloud.

zqfan avatar zqfan commented on June 1, 2024

can you attach the full log? if you feel too hard to mask the sensitive data, you can directly send it to [email protected]
ps: when terraform is developed, there is only api 2.0 available for vpc(dfw), so you will see the endpoint terraform requested is dfw.api.qcloud.com, not vpc.tencentcloudapi.com

from terraform-provider-tencentcloud.

zqfan avatar zqfan commented on June 1, 2024

@MartinForReal Hi, is there any update for this issue? We need advanced info to help us reproduce the problem and fix it. Thanks

from terraform-provider-tencentcloud.

lubars avatar lubars commented on June 1, 2024

Hi @zqfan,

I encountered this same error, but for a resource of type tencentcloud_cbs_storage:

* tencentcloud_cbs_storage.data: json: cannot unmarshal string into Go struct field .code of type int

Do you believe these errors have the same origin?

from terraform-provider-tencentcloud.

zqfan avatar zqfan commented on June 1, 2024

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

from terraform-provider-tencentcloud.

likexian avatar likexian commented on June 1, 2024

Hello @lubars
Do you still got this error when creating security group?

from terraform-provider-tencentcloud.

likexian avatar likexian commented on June 1, 2024

Hello @MartinForReal
We have refactoring the security_group, would you please have a try with the new release?

from terraform-provider-tencentcloud.

likexian avatar likexian commented on June 1, 2024

If there is any problems, please open a new issue.

from terraform-provider-tencentcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.