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

Nill pointer exception #1

Open
sh1n0b1 opened this issue Apr 20, 2020 · 2 comments
Open

Nill pointer exception #1

sh1n0b1 opened this issue Apr 20, 2020 · 2 comments

Comments

@sh1n0b1
Copy link

sh1n0b1 commented Apr 20, 2020

Description of Bug

Nil pointer exception occurs when the API is not available.

Steps to Reproduce

Run the tool and a nil pointer exception occurs when the API is not available.

Additional context

MacOS

Relevant screenshots

...omitted for brevity...
}UnauthorizedException: API is not available in eu-west-3
AccessDeniedException:
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "9fc00462-5b47-4418-b975-911898757a0a"
  }
}
AccessDeniedException:
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "94d14317-895d-4666-b9b1-950a365eb358"
  }
}
UnauthorizedException: API is not available in eu-north-1
{

}panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1450128]

goroutine 20 [running]:
github.com/BishopFox/smogcloud/service.GetRoute53(0xc00011e000, 0x1573312, 0x6, 0xc0000a9020)
        /Users/sh1n0b1/go/src/github.com/BishopFox/smogcloud/service/route53.go:48 +0x628
created by main.main
        /Users/sh1n0b1/go/src/github.com/BishopFox/smogcloud/main.go:19 +0x1de
@sh1n0b1
Copy link
Author

sh1n0b1 commented Apr 21, 2020

It might had something to do with the DNS I was using that cause some of the host couldn't resolve. After changing the DNS I was able to run it without any problem.

@felipeolifre
Copy link

felipeolifre commented Aug 18, 2020

The same happened to me, but couldn't fix it yet.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x14847ec]

goroutine 390 [running]:
github.com/BishopFox/smogcloud/service.GetElasticBeanstalk(0xc00000c1e0, 0x15a16f5, 0x9, 0xc00000f180)
	/Users/felipe/go/src/github.com/BishopFox/smogcloud/service/elasticbeanstalk.go:27 +0x30c
created by main.main
	/Users/felipe/Workspace/projects/smogcloud/main.go:33 +0x495
exit status 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants