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

Getting fatal error: stack overflow when iterating over Workspace.List with project and organization in IncludeOpts #1020

Open
nicolaka opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nicolaka
Copy link

go-tfe version

1.70.0

Description

When I try to iterate over Workspaces.List and include project and organization in the IncludeOpts, it works just fine for ~3 workspaces(pageSize=3). As soon as I increase pageSize to 3+ I get the below error. What's interesting is that it's just the combination of project + organization that results in this issue. If i use other include options with either one of these it works fine with pagesize == 100.

fatal error: stack overflow

runtime stack:
runtime.throw({0x36860c?, 0x37a68?})
        /usr/local/go/src/runtime/panic.go:1067 +0x38 fp=0xffff6780e710 sp=0xffff6780e6e0 pc=0x7d3a8
runtime.newstack()
        /usr/local/go/src/runtime/stack.go:1117 +0x460 fp=0xffff6780e850 sp=0xffff6780e710 pc=0x62530
runtime.morestack()
        /usr/local/go/src/runtime/asm_arm64.s:342 +0x70 fp=0xffff6780e850 sp=0xffff6780e850 pc=0x82ce0

goroutine 1 gp=0x40000021c0 m=4 mp=0x400004d508 [running]:
runtime.(*spanSet).push(0x605140, 0xffff6645eba8)
        /usr/local/go/src/runtime/mspanset.go:74 +0x1f4 fp=0x40262023a0 sp=0x40262023a0 pc=0x402e4
runtime.(*mcentral).uncacheSpan(0x0?, 0x0?)
        /usr/local/go/src/runtime/mcentral.go:244 +0x98 fp=0x40262023d0 sp=0x40262023a0 pc=0x24168
runtime.(*mcache).refill(0xffffaf870108, 0x48)
        /usr/local/go/src/runtime/mcache.go:159 +0x98 fp=0x4026202420 sp=0x40262023d0 pc=0x23418
runtime.(*mcache).nextFree(0xffffaf870108, 0x48)
        /usr/local/go/src/runtime/malloc.go:945 +0x8c fp=0x4026202470 sp=0x4026202420 pc=0x1daec
runtime.mallocgc(0x5f0, 0x314fa0, 0x1)
        /usr/local/go/src/runtime/malloc.go:1161 +0x470 fp=0x4026202510 sp=0x4026202470 pc=0x78360
runtime.makeslice(0x2e5de0?, 0x400028a660?, 0x0?)
        /usr/local/go/src/runtime/slice.go:116 +0x50 fp=0x4026202540 sp=0x4026202510 pc=0x7f3e0
encoding/json.mapEncoder.encode({0x4026202778?}, 0x400d47e3c0, {0x2e5de0?, 0x400028a660?, 0x0?}, {0x0?, 0x0?})
        /usr/local/go/src/encoding/json/encode.go:752 +0x1e4 fp=0x4026202740 sp=0x4026202540 pc=0x105944
encoding/json.mapEncoder.encode-fm(0x2e5de0?, {0x2e5de0?, 0x400028a660?, 0x15382100?}, {0xf4?, 0x6a?})
        <autogenerated>:1 +0x4c fp=0x4026202780 sp=0x4026202740 pc=0x116a3c
encoding/json.(*encodeState).reflectValue(0x400d47e3c0, {0x2e5de0?, 0x400028a660?, 0xcc918?}, {0x48?, 0x28?})
        /usr/local/go/src/encoding/json/encode.go:322 +0x70 fp=0x40262027e0 sp=0x4026202780 pc=0x102f30
encoding/json.(*encodeState).marshal(0x4026202888?, {0x2e5de0?, 0x400028a660?}, {0x8?, 0x0?})
        /usr/local/go/src/encoding/json/encode.go:298 +0xb8 fp=0x4026202860 sp=0x40262027e0 pc=0x102cd8
encoding/json.Marshal({0x2e5de0, 0x400028a660})
        /usr/local/go/src/encoding/json/encode.go:164 +0x8c fp=0x4026202920 sp=0x4026202860 pc=0x10274c
github.com/hashicorp/jsonapi.handleStruct({0x2e5de0?, 0x400028a660?}, {0x2b5be0?, 0x401c72fe90?, 0x1e?})
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:853 +0x3c fp=0x40262029b0 sp=0x4026202920 pc=0x276d0c
github.com/hashicorp/jsonapi.handlePointer({0x2e5de0, 0x400028a660}, {0x2adaf7?, 0x1a?, 0x22000000000090?}, {0x3f8878, 0x2b5be0}, {0x2b5be0?, 0x401c72fe90?, 0x2adb00?}, ...)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:830 +0xe4 fp=0x4026202c10 sp=0x40262029b0 pc=0x2766b4
github.com/hashicorp/jsonapi.unmarshalAttribute({0x2e5de0, 0x400028a660}, {0x401c7a1340, 0x2, 0x2}, {{0x2adaeb, 0xb}, {0x0, 0x0}, {0x3f8878, ...}, ...}, ...)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:642 +0x61c fp=0x4026202de0 sp=0x4026202c10 pc=0x274ffc
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72fe00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:402 +0x510 fp=0x4026203360 sp=0x4026202de0 pc=0x273880
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262035a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262033e0 sp=0x4026203360 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c742640?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026203960 sp=0x40262033e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4026203ba0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262039e0 sp=0x4026203960 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72fd00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026203f60 sp=0x40262039e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262041a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x4026203fe0 sp=0x4026203f60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c742600?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026204560 sp=0x4026203fe0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262047a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262045e0 sp=0x4026204560 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72fc00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026204b60 sp=0x40262045e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4026204da0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x4026204be0 sp=0x4026204b60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c7425c0?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026205160 sp=0x4026204be0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262053a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262051e0 sp=0x4026205160 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72fb00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026205760 sp=0x40262051e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262059a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262057e0 sp=0x4026205760 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c742580?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026205d60 sp=0x40262057e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4026205fa0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x4026205de0 sp=0x4026205d60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72fa00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026206360 sp=0x4026205de0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262065a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262063e0 sp=0x4026206360 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c742540?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026206960 sp=0x40262063e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4026206ba0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262069e0 sp=0x4026206960 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72f900?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026206f60 sp=0x40262069e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262071a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x4026206fe0 sp=0x4026206f60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c742500?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026207560 sp=0x4026206fe0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262077a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262075e0 sp=0x4026207560 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72f800?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026207b60 sp=0x40262075e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4026207da0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x4026207be0 sp=0x4026207b60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c7424c0?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026208160 sp=0x4026207be0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262083a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262081e0 sp=0x4026208160 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72f700?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026208760 sp=0x40262081e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262089a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262087e0 sp=0x4026208760 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c742480?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026208d60 sp=0x40262087e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4026208fa0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x4026208de0 sp=0x4026208d60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x401c72f600?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026209360 sp=0x4026208de0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40262095a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262093e0 sp=0x4026209360 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x401c742440?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4026209960 sp=0x40262093e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4026209ba0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40262099e0 sp=0x4026209960 pc=0x2732d0
...698964 frames elided...
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40000ea200?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461f9b60 sp=0x40461f95e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461f9da0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x40000fba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461f9be0 sp=0x40461f9b60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x40002a0080?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fa160 sp=0x40461f9be0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fa3a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x40000fba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fa1e0 sp=0x40461fa160 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40000ea100?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fa760 sp=0x40461fa1e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fa9a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x40000fba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fa7e0 sp=0x40461fa760 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x40002a0040?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fad60 sp=0x40461fa7e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fafa0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x40000fba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fade0 sp=0x40461fad60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40000ea000?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fb360 sp=0x40461fade0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fb5a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fb3e0 sp=0x40461fb360 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x40002a0000?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fb960 sp=0x40461fb3e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fbba0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fb9e0 sp=0x40461fb960 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x400042e200?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fbf60 sp=0x40461fb9e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fc1a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fbfe0 sp=0x40461fbf60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x4000076100?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fc560 sp=0x40461fbfe0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fc7a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fc5e0 sp=0x40461fc560 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x400042e100?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fcb60 sp=0x40461fc5e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fcda0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fcbe0 sp=0x40461fcb60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x40000760c0?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fd160 sp=0x40461fcbe0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fd3a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fd1e0 sp=0x40461fd160 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x400042e000?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fd760 sp=0x40461fd1e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fd9a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fd7e0 sp=0x40461fd760 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x4000397100?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fdd60 sp=0x40461fd7e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fdfa0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fdde0 sp=0x40461fdd60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40001f4d00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fe360 sp=0x40461fdde0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461fe5a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fe3e0 sp=0x40461fe360 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x40003970c0?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fe960 sp=0x40461fe3e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461feba0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x4000387a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fe9e0 sp=0x40461fe960 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40001f4c00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461fef60 sp=0x40461fe9e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461ff1a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x400002ba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461fefe0 sp=0x40461fef60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x4000397080?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461ff560 sp=0x40461fefe0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461ff7a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x400002ba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461ff5e0 sp=0x40461ff560 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40001f4b00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x40461ffb60 sp=0x40461ff5e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40461ffda0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x400002ba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40461ffbe0 sp=0x40461ffb60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x4000397040?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4046200160 sp=0x40461ffbe0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40462003a0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x400002ba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40462001e0 sp=0x4046200160 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40001f4a00?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4046200760 sp=0x40462001e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40462009a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x400002ba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40462007e0 sp=0x4046200760 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1db0, {0x2b5c20?, 0x4000397000?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4046200d60 sp=0x40462007e0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x4046200fa0, 0x335100?, {0x2b344f?, 0xf?}, 0x3f8878?, 0x400002ba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x4046200de0 sp=0x4046200d60 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1a40, {0x2b6fe0?, 0x40001f4900?, 0xc8d0c?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4046201360 sp=0x4046200de0 pc=0x273d2c
github.com/hashicorp/jsonapi.unmarshalNodeMaybeChoice(0x40462015a0, 0x35b340?, {0x2b0e0b?, 0xc?}, 0x3f8878?, 0x400002ba00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:285 +0x120 fp=0x40462013e0 sp=0x4046201360 pc=0x2732d0
github.com/hashicorp/jsonapi.unmarshalNode(0x40004d1900, {0x2b6f60?, 0x400033a008?, 0x1d?}, 0x4046201a00)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:481 +0x9bc fp=0x4046201960 sp=0x40462013e0 pc=0x273d2c
github.com/hashicorp/jsonapi.UnmarshalManyPayload({0x3f12c0, 0x400040a220}, {0x3f8878, 0x2b6f60})
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:135 +0x1a8 fp=0x4046201b60 sp=0x4046201960 pc=0x2729f8
github.com/hashicorp/go-tfe.unmarshalResponse({0xffff68d07098, 0x400022e000}, {0x2bc720, 0x400040a1a0})
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/tfe.go:878 +0x24c fp=0x4046201c90 sp=0x4046201b60 pc=0x28415c
github.com/hashicorp/go-tfe.ClientRequest.Do({0x400023e090?, 0x4000120880?, 0x400007a0a0?, 0x40002001e0?}, {0x3f3f88, 0x609360}, {0x2bc720, 0x400040a1a0})
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/request.go:78 +0x318 fp=0x4046201d80 sp=0x4046201c90 pc=0x27f8b8
github.com/hashicorp/go-tfe.(*workspaces).List(0x400004a330, {0x3f3f88, 0x609360}, {0x36621f, 0x8}, 0x4000110370)
        /root/code/go/pkg/mod/github.com/hashicorp/[email protected]/workspace.go:740 +0x144 fp=0x4046201e00 sp=0x4046201d80 pc=0x284fd4
main.main()
        /root/projects/TFBI_internal/scripts/main.go:32 +0x150 fp=0x4046201f40 sp=0x4046201e00 pc=0x28daf0
runtime.main()
        /usr/local/go/src/runtime/proc.go:272 +0x288 fp=0x4046201fd0 sp=0x4046201f40 pc=0x489a8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4046201fd0 sp=0x4046201fd0 pc=0x85084

goroutine 2 gp=0x4000002c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000046f90 sp=0x4000046f70 pc=0x7d4c8
runtime.goparkunlock(...)
        /usr/local/go/src/runtime/proc.go:430
runtime.forcegchelper()
        /usr/local/go/src/runtime/proc.go:337 +0xb8 fp=0x4000046fd0 sp=0x4000046f90 pc=0x48d08
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000046fd0 sp=0x4000046fd0 pc=0x85084
created by runtime.init.7 in goroutine 1
        /usr/local/go/src/runtime/proc.go:325 +0x24

goroutine 3 gp=0x4000003180 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000047760 sp=0x4000047740 pc=0x7d4c8
runtime.goparkunlock(...)
        /usr/local/go/src/runtime/proc.go:430
runtime.bgsweep(0x4000074000)
        /usr/local/go/src/runtime/mgcsweep.go:317 +0x108 fp=0x40000477b0 sp=0x4000047760 pc=0x33828
runtime.gcenable.gowrap1()
        /usr/local/go/src/runtime/mgc.go:203 +0x28 fp=0x40000477d0 sp=0x40000477b0 pc=0x279f8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000477d0 sp=0x40000477d0 pc=0x85084
created by runtime.gcenable in goroutine 1
        /usr/local/go/src/runtime/mgc.go:203 +0x6c

goroutine 4 gp=0x4000003340 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0x5832c1?, 0x0?, 0x0?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000047f60 sp=0x4000047f40 pc=0x7d4c8
runtime.goparkunlock(...)
        /usr/local/go/src/runtime/proc.go:430
runtime.(*scavengerState).park(0x5e1fa0)
        /usr/local/go/src/runtime/mgcscavenge.go:425 +0x5c fp=0x4000047f90 sp=0x4000047f60 pc=0x311ec
runtime.bgscavenge(0x4000074000)
        /usr/local/go/src/runtime/mgcscavenge.go:658 +0xac fp=0x4000047fb0 sp=0x4000047f90 pc=0x3177c
runtime.gcenable.gowrap2()
        /usr/local/go/src/runtime/mgc.go:204 +0x28 fp=0x4000047fd0 sp=0x4000047fb0 pc=0x27998
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000047fd0 sp=0x4000047fd0 pc=0x85084
created by runtime.gcenable in goroutine 1
        /usr/local/go/src/runtime/mgc.go:204 +0xac

goroutine 5 gp=0x4000003c00 m=nil [finalizer wait]:
runtime.gopark(0x40000465b8?, 0x15ea2c?, 0xa0?, 0x0?, 0x339460?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000046580 sp=0x4000046560 pc=0x7d4c8
runtime.runfinq()
        /usr/local/go/src/runtime/mfinal.go:193 +0x108 fp=0x40000467d0 sp=0x4000046580 pc=0x26af8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000467d0 sp=0x40000467d0 pc=0x85084
created by runtime.createfing in goroutine 1
        /usr/local/go/src/runtime/mfinal.go:163 +0x80

goroutine 6 gp=0x4000003dc0 m=nil [chan receive]:
runtime.gopark(0x4000048748?, 0x16840c?, 0x60?, 0x26?, 0x3f8d40?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x40000486f0 sp=0x40000486d0 pc=0x7d4c8
runtime.chanrecv(0x4000026150, 0x0, 0x1)
        /usr/local/go/src/runtime/chan.go:639 +0x414 fp=0x4000048770 sp=0x40000486f0 pc=0x17a34
runtime.chanrecv1(0x0?, 0x0?)
        /usr/local/go/src/runtime/chan.go:489 +0x14 fp=0x40000487a0 sp=0x4000048770 pc=0x175e4
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
        /usr/local/go/src/runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
        /usr/local/go/src/runtime/mgc.go:1735 +0x3c fp=0x40000487d0 sp=0x40000487a0 pc=0x2a86c
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000487d0 sp=0x40000487d0 pc=0x85084
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
        /usr/local/go/src/runtime/mgc.go:1730 +0xa0

goroutine 37 gp=0x400016ca80 m=nil [IO wait]:
runtime.gopark(0x10?, 0x10?, 0x8?, 0x17?, 0x237d0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000131670 sp=0x4000131650 pc=0x7d4c8
runtime.netpollblock(0x0?, 0xffffffff?, 0xff?)
        /usr/local/go/src/runtime/netpoll.go:575 +0x158 fp=0x40001316b0 sp=0x4000131670 pc=0x41668
internal/poll.runtime_pollWait(0xffff68dcbe70, 0x72)
        /usr/local/go/src/runtime/netpoll.go:351 +0xa0 fp=0x40001316e0 sp=0x40001316b0 pc=0x7c770
internal/poll.(*pollDesc).wait(0x40000a0100?, 0x40001dc000?, 0x0)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x4000131710 sp=0x40001316e0 pc=0xd60f8
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x40000a0100, {0x40001dc000, 0xa000, 0xa000})
        /usr/local/go/src/internal/poll/fd_unix.go:165 +0x1fc fp=0x40001317b0 sp=0x4000131710 pc=0xd69cc
net.(*netFD).Read(0x40000a0100, {0x40001dc000?, 0x4000122fd0?, 0xd?})
        /usr/local/go/src/net/fd_posix.go:55 +0x28 fp=0x4000131800 sp=0x40001317b0 pc=0x1823d8
net.(*conn).Read(0x400004a128, {0x40001dc000?, 0x40001e0e0d?, 0xd?})
        /usr/local/go/src/net/net.go:189 +0x34 fp=0x4000131850 sp=0x4000131800 pc=0x18b2d4
net.(*TCPConn).Read(0x40001318c8?, {0x40001dc000?, 0xffffaf879068?, 0x18?})
        <autogenerated>:1 +0x2c fp=0x4000131880 sp=0x4000131850 pc=0x196c0c
crypto/tls.(*atLeastReader).Read(0x400000e618, {0x40001dc000?, 0x0?, 0x400000e618?})
        /usr/local/go/src/crypto/tls/conn.go:809 +0x40 fp=0x40001318d0 sp=0x4000131880 pc=0x1c1140
bytes.(*Buffer).ReadFrom(0x40001230b8, {0x3f1e40, 0x400000e618})
        /usr/local/go/src/bytes/buffer.go:211 +0x90 fp=0x4000131930 sp=0x40001318d0 pc=0xfa410
crypto/tls.(*Conn).readFromUntil(0x4000122e08, {0x3f1f20, 0x400004a128}, 0x0?)
        /usr/local/go/src/crypto/tls/conn.go:831 +0xd0 fp=0x4000131970 sp=0x4000131930 pc=0x1c1320
crypto/tls.(*Conn).readRecordOrCCS(0x4000122e08, 0x0)
        /usr/local/go/src/crypto/tls/conn.go:629 +0x35c fp=0x4000131bf0 sp=0x4000131970 pc=0x1beabc
crypto/tls.(*Conn).readRecord(...)
        /usr/local/go/src/crypto/tls/conn.go:591
crypto/tls.(*Conn).Read(0x4000122e08, {0x400017f000, 0x1000, 0x22cfa8?})
        /usr/local/go/src/crypto/tls/conn.go:1385 +0x164 fp=0x4000131c60 sp=0x4000131bf0 pc=0x1c4a54
bufio.(*Reader).Read(0x40004cef60, {0x400012fc40, 0x9, 0x5d1e70?})
        /usr/local/go/src/bufio/bufio.go:241 +0x1b4 fp=0x4000131ca0 sp=0x4000131c60 pc=0x1efe74
io.ReadAtLeast({0x3f1760, 0x40004cef60}, {0x400012fc40, 0x9, 0x9}, 0x9)
        /usr/local/go/src/io/io.go:335 +0xa0 fp=0x4000131cf0 sp=0x4000131ca0 pc=0xcfc40
io.ReadFull(...)
        /usr/local/go/src/io/io.go:354
net/http.http2readFrameHeader({0x400012fc40, 0x9, 0x4000175ef0?}, {0x3f1760?, 0x40004cef60?})
        /usr/local/go/src/net/http/h2_bundle.go:1642 +0x58 fp=0x4000131d40 sp=0x4000131cf0 pc=0x218f08
net/http.(*http2Framer).ReadFrame(0x400012fc00)
        /usr/local/go/src/net/http/h2_bundle.go:1909 +0x78 fp=0x4000131df0 sp=0x4000131d40 pc=0x219538
net/http.(*http2clientConnReadLoop).run(0x4000131f98)
        /usr/local/go/src/net/http/h2_bundle.go:9496 +0xd0 fp=0x4000131f40 sp=0x4000131df0 pc=0x22a060
net/http.(*http2ClientConn).readLoop(0x4000168480)
        /usr/local/go/src/net/http/h2_bundle.go:9392 +0x78 fp=0x4000131fb0 sp=0x4000131f40 pc=0x2295d8
net/http.(*http2Transport).newClientConn.gowrap1()
        /usr/local/go/src/net/http/h2_bundle.go:8006 +0x28 fp=0x4000131fd0 sp=0x4000131fb0 pc=0x222e98
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000131fd0 sp=0x4000131fd0 pc=0x85084
created by net/http.(*http2Transport).newClientConn in goroutine 36
        /usr/local/go/src/net/http/h2_bundle.go:8006 +0xae0

goroutine 13 gp=0x40002b3dc0 m=nil [GC worker (idle)]:
runtime.gopark(0x4853834399e?, 0x2?, 0x89?, 0x18?, 0x4000020360?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000048f10 sp=0x4000048ef0 pc=0x7d4c8
runtime.gcBgMarkWorker(0x400037c850)
        /usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x4000048fb0 sp=0x4000048f10 pc=0x29adc
runtime.gcBgMarkStartWorkers.gowrap1()
        /usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x4000048fd0 sp=0x4000048fb0 pc=0x299c8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000048fd0 sp=0x4000048fd0 pc=0x85084
created by runtime.gcBgMarkStartWorkers in goroutine 11
        /usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 14 gp=0x4000446000 m=nil [GC worker (idle)]:
runtime.gopark(0x48538341f94?, 0x1?, 0x30?, 0xfa?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000049710 sp=0x40000496f0 pc=0x7d4c8
runtime.gcBgMarkWorker(0x400037c850)
        /usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x40000497b0 sp=0x4000049710 pc=0x29adc
runtime.gcBgMarkStartWorkers.gowrap1()
        /usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x40000497d0 sp=0x40000497b0 pc=0x299c8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x40000497d0 sp=0x40000497d0 pc=0x85084
created by runtime.gcBgMarkStartWorkers in goroutine 11
        /usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 15 gp=0x40004461c0 m=nil [GC worker (idle)]:
runtime.gopark(0x48538344844?, 0x2?, 0x8f?, 0x2b?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x4000049f10 sp=0x4000049ef0 pc=0x7d4c8
runtime.gcBgMarkWorker(0x400037c850)
        /usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x4000049fb0 sp=0x4000049f10 pc=0x29adc
runtime.gcBgMarkStartWorkers.gowrap1()
        /usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x4000049fd0 sp=0x4000049fb0 pc=0x299c8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x4000049fd0 sp=0x4000049fd0 pc=0x85084
created by runtime.gcBgMarkStartWorkers in goroutine 11
        /usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 16 gp=0x4000446380 m=nil [GC worker (idle)]:
runtime.gopark(0x4853833bee6?, 0x1?, 0x38?, 0xc3?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x400044c710 sp=0x400044c6f0 pc=0x7d4c8
runtime.gcBgMarkWorker(0x400037c850)
        /usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x400044c7b0 sp=0x400044c710 pc=0x29adc
runtime.gcBgMarkStartWorkers.gowrap1()
        /usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x400044c7d0 sp=0x400044c7b0 pc=0x299c8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x400044c7d0 sp=0x400044c7d0 pc=0x85084
created by runtime.gcBgMarkStartWorkers in goroutine 11
        /usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 34 gp=0x4000446540 m=nil [GC worker (idle)]:
runtime.gopark(0x4853833bf0f?, 0x2?, 0x1e?, 0x21?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x400044cf10 sp=0x400044cef0 pc=0x7d4c8
runtime.gcBgMarkWorker(0x400037c850)
        /usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x400044cfb0 sp=0x400044cf10 pc=0x29adc
runtime.gcBgMarkStartWorkers.gowrap1()
        /usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x400044cfd0 sp=0x400044cfb0 pc=0x299c8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x400044cfd0 sp=0x400044cfd0 pc=0x85084
created by runtime.gcBgMarkStartWorkers in goroutine 11
        /usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 35 gp=0x4000446700 m=nil [GC worker (idle)]:
runtime.gopark(0x48538343bbc?, 0x1?, 0x99?, 0x2b?, 0x0?)
        /usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x400044d710 sp=0x400044d6f0 pc=0x7d4c8
runtime.gcBgMarkWorker(0x400037c850)
        /usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x400044d7b0 sp=0x400044d710 pc=0x29adc
runtime.gcBgMarkStartWorkers.gowrap1()
        /usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x400044d7d0 sp=0x400044d7b0 pc=0x299c8
runtime.goexit({})
        /usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x400044d7d0 sp=0x400044d7d0 pc=0x85084
created by runtime.gcBgMarkStartWorkers in goroutine 11
        /usr/local/go/src/runtime/mgc.go:1279 +0x140
exit status 2

Testing plan

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/hashicorp/go-tfe"
)

func main() {
         org := "myorg"
	pageSize := 3
	page := 1

	workspacesList, err := client.Workspaces.List(ctx, org, &tfe.WorkspaceListOptions{
		ListOptions: tfe.ListOptions{
			PageSize:   pageSize,
			PageNumber: page,
		},
		Include: []tfe.WSIncludeOpt{
			"project",
			"organization",
		},
	})

	if err != nil {
		fmt.Println("Error getting workspace list:", err)
		return
	}

	for _, ws := range workspacesList.Items {
		fmt.Printf("Worksplace List Test:  %s is in project %s \n", ws.Name, fmt.Sprint(ws.Project.Name))
	}

}

When using PageSize <= 2

$ go run . 
Worksplace List Test:  terraform-xxxx is in project xxxx
Worksplace List Test:  astro-xxxis in project astro-xxx 

Expected Behavior

Be able to use both project and organization and use large number of pargeSize

@nicolaka nicolaka added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant