Coder Social home page Coder Social logo

Comments (4)

alexkappa avatar alexkappa commented on June 5, 2024

Hi @robertstettner, I've tried to reproduce this by replacing ${aws_route53_record.main.fqdn} with example.com. I wasn't able to reproduce the error.

The panic points to these lines. We should definitely not ignore the error from http.NewRequest(...).

Could you repeat your steps with the flags TF_LOG=DEBUG AUTH0_DEBUG=1 and paste the output in a gist?

from terraform-provider-auth0.

robertstettner avatar robertstettner commented on June 5, 2024

Same output as above, nothing new.

2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: panic: runtime error: invalid memory address or nil pointer dereference
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: [signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x1808f51]
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: goroutine 51 [running]:
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: github.com/yieldr/terraform-provider-auth0/vendor/github.com/yieldr/go-auth0/management.(*Management).request(0xc00034c2c0, 0x1a18111, 0x4, 0xc000468000, 0x141, 0x1900200, 0xc000372600, 0x0, 0x0)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/go/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/yieldr/go-auth0/management/management.go:136 +0xd1
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: github.com/yieldr/terraform-provider-auth0/vendor/github.com/yieldr/go-auth0/management.(*Management).post(0xc00034c2c0, 0xc000468000, 0x141, 0x1900200, 0xc000372600, 0x141, 0xc0003f69c8)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/go/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/yieldr/go-auth0/management/management.go:172 +0x68
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: github.com/yieldr/terraform-provider-auth0/vendor/github.com/yieldr/go-auth0/management.(*ClientManager).Create(0xc00013a470, 0xc000372600, 0x17bb1ac, 0xc0003d6ce0)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/go/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/yieldr/go-auth0/management/client.go:114 +0xa1
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: github.com/yieldr/terraform-provider-auth0/auth0.createClient(0xc0003e6380, 0x19a1f40, 0xc00034c2c0, 0x24, 0x228dce0)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/go/src/github.com/yieldr/terraform-provider-auth0/auth0/resource_auth0_client.go:447 +0x5f
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc000388850, 0xc000402140, 0xc0003d6ce0, 0x19a1f40, 0xc00034c2c0, 0x100b601, 0xc0003f6b80, 0x10bd81c)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/go/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:225 +0x351
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc000388ee0, 0xc0004020f0, 0xc000402140, 0xc0003d6ce0, 0xc000368000, 0x18, 0x2601440)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/go/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0x9c
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc000135b40, 0xc0003d68c0, 0xc0003e1930, 0x0, 0x0)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/go/src/github.com/yieldr/terraform-provider-auth0/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: reflect.Value.call(0xc000126840, 0xc00013a038, 0x13, 0x1a17ffd, 0x4, 0xc0003f6f18, 0x3, 0x3, 0xc000384040, 0x0, ...)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/usr/local/go/src/reflect/value.go:447 +0x454
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: reflect.Value.Call(0xc000126840, 0xc00013a038, 0x13, 0xc000334f18, 0x3, 0x3, 0x0, 0x0, 0x0)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/usr/local/go/src/reflect/value.go:308 +0xa4
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: net/rpc.(*service).call(0xc00014a140, 0xc00033e1e0, 0xc00014c178, 0xc00014c1a0, 0xc00014e300, 0xc00013c9e0, 0x1889040, 0xc0003d68c0, 0x16, 0x1889080, ...)
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/usr/local/go/src/net/rpc/server.go:384 +0x14e
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: created by net/rpc.(*Server).ServeCodec
2019-01-21T14:52:55.328Z [DEBUG] plugin.terraform-provider-auth0_v0.1.12: 	/usr/local/go/src/net/rpc/server.go:481 +0x47e

I tried using Terraform v0.11.8 and now v0.11.11, same problem.

from terraform-provider-auth0.

robertstettner avatar robertstettner commented on June 5, 2024

Sorry my mistake, I was putting in the client secret into the domain parameter of the auth0 provider. Stupid me.

So request was failing because it wasn't a valid domain. Would've been nice to have a friendly error message.

from terraform-provider-auth0.

alexkappa avatar alexkappa commented on June 5, 2024

Yes, that confirms my suspicion :)

Indeed a proper error message should be returned in this case.

I've made a ticket in yieldr/go-auth0 to fix this.

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.