-
Notifications
You must be signed in to change notification settings - Fork 13
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
Nil pointer #46
Comments
Forgot to mention that this is with ECS with EC2 backend. |
remove unused createSSMClient function
@dpengftw can you try upgrading to the latest version and trying this again? A back off was added to the sdk v2 config - not had chance to test it yet though |
Ok, looks like that did the trick: `
Starting session with SessionId: ecs-execute-command-9ybux6aajbhjarulxttbossnv8 |
My guess is that the API calls are reaching a rate limit, therefore the code is running into nil pointer.
Solution would be to use a backoff function to call AWS api, if the first call fails.
`> ecsgo
? Select a task: panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102fdafac]
goroutine 18 [running]:
github.com/tedsmitt/ecsgo/internal.getPlatformFamily({0x103619a00, 0x1400011a100}, {0x1034115e0?, 0x140004ded80?}, 0x140004c8900)
github.com/tedsmitt/ecsgo/internal/internal.go:87 +0x8c
github.com/tedsmitt/ecsgo/internal.(*App).getContainerOS(0x140004016b0)
github.com/tedsmitt/ecsgo/internal/app.go:426 +0xa0
github.com/tedsmitt/ecsgo/internal.(*App).getTask(0x140004016b0)
github.com/tedsmitt/ecsgo/internal/app.go:366 +0xb8c
github.com/tedsmitt/ecsgo/internal.(*App).Start.func1()
github.com/tedsmitt/ecsgo/internal/app.go:70 +0x130
created by github.com/tedsmitt/ecsgo/internal.(*App).Start
github.com/tedsmitt/ecsgo/internal/app.go:60 +0x84`
The text was updated successfully, but these errors were encountered: