Skip to content
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

Connection refused for Client and ResourceServerScopes #724

Open
ollaw opened this issue Dec 12, 2024 · 1 comment
Open

Connection refused for Client and ResourceServerScopes #724

ollaw opened this issue Dec 12, 2024 · 1 comment
Labels
impact/panic This bug represents a panic or unexpected crash kind/bug Some behavior is incorrect or out of spec needs-repro Needs repro steps before it can be triaged or fixed

Comments

@ollaw
Copy link

ollaw commented Dec 12, 2024

Describe what happened

The creation of ResourceServerScopes or update of Client generate the following inline error:

auth0:index:ResourceServerScopes (resource-name):
    error: connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:45783: connect: connection refused"

and at the end of the stack i get:

pulumi:pulumi:Stack (auth0-auth0.staging):
    panic: interface conversion: interface {} is nil, not map[string]interface {}
    goroutine 362 [running]:
    github.com/hashicorp/go-cty/cty.Value.GetAttr({{{0x16be940?, 0xc000724ff8?}}, {0x0?, 0x0?}}, {0x146e19a, 0x2})
    	/home/runner/go/pkg/mod/github.com/hashicorp/[email protected]/cty/value_ops.go:711 +0x2d7
    github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*v2InstanceState2).ID(0xc0007962d0?)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfshim/sdk-v2/provider2.go:92 +0x37
    github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Create(0xc000773988, {0x16be710?, 0xc001029620?}, 0xc0002423f0)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfbridge/provider.go:1349 +0x9e8
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler.func1({0x16be710?, 0xc001029620?}, {0x13cbae0?, 0xc0002423f0?})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:815 +0xcb
    github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x16be710, 0xc0010290b0}, {0x13cbae0, 0xc0002423f0}, 0xc001213a80, 0xc00128ed38)
    	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/go/otgrpc/server.go:57 +0x3db
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler({0x14457a0, 0xc000773988}, {0x16be710, 0xc0010290b0}, 0xc001056080, 0xc00061d940)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:817 +0x143
    google.golang.org/grpc.(*Server).processUnaryRPC(0xc000379000, {0x16be710, 0xc001029020}, {0x16c8c40, 0xc00055e000}, 0xc0012158c0, 0xc0000d5500, 0x21d51d8, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1394 +0xe49
    google.golang.org/grpc.(*Server).handleStream(0xc000379000, {0x16c8c40, 0xc00055e000}, 0xc0012158c0)
    	/home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1805 +0xe8b
    google.golang.org/grpc.(*Server).serveStreams.func2.1()
    	/home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1029 +0x8b
    created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 26
    	/home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1040 +0x125

Bumping into this with Pulumi v3.142.0 on Python and pulumi-auth0 v3.10.0.

Sample program

client = auth0.Client(  ...  )

auth0.ClientCredentials(
    client_id=client.client_id,
     ...
)

auth0.ClientGrant(
    client_id=client.id,
    ....
)

Log output

No response

Affected Resource(s)

ResourceServerScopes
Client

Output of pulumi about

CLI
Version 3.142.0
Go Version go1.23.3
Go Compiler gc

Host
OS ubuntu
Version 22.04
Arch x86_64

Backend
Name my-hostname
URL s3://my-bucket
User my-user
Organizations
Token type personal

Pulumi locates its logs in /tmp by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@ollaw ollaw added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Dec 12, 2024
@iwahbe iwahbe added needs-repro Needs repro steps before it can be triaged or fixed impact/panic This bug represents a panic or unexpected crash and removed needs-triage Needs attention from the triage team labels Dec 13, 2024
@iwahbe
Copy link
Member

iwahbe commented Dec 13, 2024

Hi @ollaw. Thanks for opening an issue. I'm not able to repro by updating a client. That works as expected.

My guess is that you have hit pulumi/pulumi-terraform-bridge#2706. I've released a patch version of pulumi-auth0 in case you have. Please let me know if this issue reproduces on the v3.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/panic This bug represents a panic or unexpected crash kind/bug Some behavior is incorrect or out of spec needs-repro Needs repro steps before it can be triaged or fixed
Projects
None yet
Development

No branches or pull requests

2 participants