awslabs / ssosync

Populate AWS SSO directly with your G Suite users and groups using either a CLI or AWS Lambda
Apache License 2.0
530 stars 182 forks source link

SSO Sync not working for google workspaces user to SSO #96

Closed Rajchandraraj closed 1 year ago

Rajchandraraj commented 2 years ago

Describe the bug when you run the function it is not populating the user on AWS site , and when you check the lambda function error that we are getting is

"runtime error: invalid memory address or nil pointer dereference: errorString [{"path":"github.com/aws/aws-lambda-go@v1.23.0/lambda/errors.go","line":39,"label":"lambdaPanicResponse"},{"path":"github.com/aws/aws-lambda-go@v1.23.0/lambda/function.go","line":36,"label":"(Function).Invoke.func1"},{"path":"runtime/panic.go","line":838,"label":"gopanic"},{"path":"runtime/panic.go","line":220,"label":"panicmem"},{"path":"runtime/signal_unix.go","line":818,"label":"sigpanic"},{"path":"output/src608454744/src/internal/google/client.go","line":45,"label":"NewClient"},{"path":"output/src608454744/src/internal/sync.go","line":687,"label":"DoSync"},{"path":"output/src608454744/src/cmd/root.go","line":55,"label":"glob..func1"},{"path":"github.com/spf13/cobra@v1.1.3/command.go","line":852,"label":"(Command).execute"},{"path":"github.com/spf13/cobra@v1.1.3/command.go","line":960,"label":"(Command).ExecuteC"},{"path":"github.com/spf13/cobra@v1.1.3/command.go","line":897,"label":"(Command).Execute"},{"path":"reflect/value.go","line":556,"label":"Value.call"},{"path":"reflect/value.go","line":339,"label":"Value.Call"},{"path":"github.com/aws/aws-lambda-go@v1.23.0/lambda/handler.go","line":124,"label":"NewHandler.func1"},{"path":"github.com/aws/aws-lambda-go@v1.23.0/lambda/handler.go","line":24,"label":"lambdaHandler.Invoke"},{"path":"github.com/aws/aws-lambda-go@v1.23.0/lambda/function.go","line":64,"label":"(Function).Invoke"},{"path":"reflect/value.go","line":556,"label":"Value.call"},{"path":"reflect/value.go","line":339,"label":"Value.Call"},{"path":"net/rpc/server.go","line":381,"label":"(service).call"},{"path":"runtime/asm_amd64.s","line":1571,"label":"goexit"}]"

To Reproduce Steps to reproduce the behavior follow the steps mentioned in the link below. https://github.com/awslabs/ssosync#readme

ChrisPates commented 1 year ago

Do you still see this error with the latest release v2.0.2?