Coder Social home page Coder Social logo

Comments (6)

dassbj01 avatar dassbj01 commented on May 23, 2024

same result if you try to add client_metadata to the auth0_connection resource

from terraform-provider-auth0.

alexkappa avatar alexkappa commented on May 23, 2024

Hi @dassbj01, could you re-run using TF_LOG=DEBUG AUTH0_DEBUG=1 terraform apply and upload the crash log to a gist? Which version of this provider are you using?

from terraform-provider-auth0.

dassbj01 avatar dassbj01 commented on May 23, 2024

sure :
https://gist.github.com/dassbj01/733ccacc6a9120018e8b72c00fda804d

provider version is master head (build locally, as we run terraform using docker and therefor we do build all non official plugins)

from terraform-provider-auth0.

dassbj01 avatar dassbj01 commented on May 23, 2024

and thx for prettifying my issue

from terraform-provider-auth0.

alexkappa avatar alexkappa commented on May 23, 2024

Thanks @dassbj01, with the crash.log I'm able to see where it went wrong. The type conversion of client_metadata is incorrect, and the tests didn't catch it.

2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: panic: interface conversion: interface {} is map[string]interface {}, not []interface {}
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: goroutine 101 [running]:
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: github.com/yieldr/terraform-provider-auth0/auth0.List(0xf88c80, 0xc0001bf490, 0xe25404, 0xf, 0xc00044c660)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/go_path/src/github.com/yieldr/terraform-provider-auth0/auth0/resource_data.go:115 +0x146
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: github.com/yieldr/terraform-provider-auth0/auth0.buildClient(0xc0001bf490, 0xc0003669e0)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/go_path/src/github.com/yieldr/terraform-provider-auth0/auth0/resource_auth0_client.go:578 +0x903
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: github.com/yieldr/terraform-provider-auth0/auth0.createClient(0xc0001bf490, 0xda48a0, 0xc0000a8790, 0x24, 0x1696740)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/go_path/src/github.com/yieldr/terraform-provider-auth0/auth0/resource_auth0_client.go:440 +0x2f
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc0001be770, 0xc0003c6500, 0xc0003dfa80, 0xda48a0, 0xc0000a8790, 0x40d701, 0xc000366b80, 0x4c323c)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/go_path/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:225 +0x351
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc0001beee0, 0xc0003c64b0, 0xc0003c6500, 0xc0003dfa80, 0xc000124e00, 0x18, 0x7fa9a33e46c0)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/go_path/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0x9c
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc0003dec20, 0xc0003df660, 0xc000146e70, 0x0, 0x0)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/go_path/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: reflect.Value.call(0xc0001532c0, 0xc0005161f8, 0x13, 0xe1b251, 0x4, 0xc000366f18, 0x3, 0x3, 0xc000148300, 0xc0004a8180, ...)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/usr/local/go/src/reflect/value.go:447 +0x449
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: reflect.Value.Call(0xc0001532c0, 0xc0005161f8, 0x13, 0xc0004c2718, 0x3, 0x3, 0x0, 0xc0003bac60, 0x0)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/usr/local/go/src/reflect/value.go:308 +0xa4
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: net/rpc.(*service).call(0xc000530d40, 0xc0003c6320, 0xc000532340, 0xc000532350, 0xc000168a80, 0xc0003c24c0, 0xc8ae00, 0xc0003df660, 0x16, 0xc8ae40, ...)
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/usr/local/go/src/net/rpc/server.go:384 +0x14e
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: created by net/rpc.(*Server).ServeCodec
2018-11-29T09:16:46.101Z [DEBUG] plugin.terraform-provider-auth0: 	/usr/local/go/src/net/rpc/server.go:481 +0x47e

I can have a look at it soon. Meanwhile, if you can give it a go you're welcome to do so.

from terraform-provider-auth0.

alexkappa avatar alexkappa commented on May 23, 2024

This was fixed by @ar3cka in #64

from terraform-provider-auth0.

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.