You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using SSO and when the env var AWS_SDK_LOAD_CONFIG is set to TRUE and creating a new session like below sess, err := session.NewSession()
causes error runtime: goroutine stack exceeds 1000000000-byte limit
Expected Behavior
No overflow of the stack. Should work fine like if the below is used
func main() {
sess, err := session.NewSession()
if err != nil { // program never reaches here
fmt.Println(err)
}
}
aws login sso --sso-session <name_in_config_file>
set env variable AWS_SDK_LOAD_CONFIG=TRUE
set env variable AWS_PROFILE=<some_profile_in_config_using_same_sso>
build and run the program
Possible Solution
No response
Additional Information/Context
No response
SDK version used
v1.44.300
Environment details (Version of Go (go version)? OS name and version, etc.)
go1.20.2 darwin/arm64
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I am using SSO and when the env var AWS_SDK_LOAD_CONFIG is set to TRUE and creating a new session like below
sess, err := session.NewSession()
causes error
runtime: goroutine stack exceeds 1000000000-byte limit
Expected Behavior
No overflow of the stack. Should work fine like if the below is used
Current Behavior
There is an infinite loop and the program crashes eventually. Please check the stack
NewSession -> ..... -> resolveSSOCredentials -> NewSession -> ..... -> resolveSSOCredentials -> NewSession -> .....
Reproduction Steps
create a test go program and within the main
aws login sso --sso-session <name_in_config_file>
set env variable AWS_SDK_LOAD_CONFIG=TRUE
set env variable AWS_PROFILE=<some_profile_in_config_using_same_sso>
build and run the program
Possible Solution
No response
Additional Information/Context
No response
SDK version used
v1.44.300
Environment details (Version of Go (
go version
)? OS name and version, etc.)go1.20.2 darwin/arm64
The text was updated successfully, but these errors were encountered: