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

encountered panic after 4 requests are validated in wiretap #69

Closed
pranayinos opened this issue Dec 15, 2023 · 4 comments
Closed

encountered panic after 4 requests are validated in wiretap #69

pranayinos opened this issue Dec 15, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@pranayinos
Copy link

The Panic was:

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

goroutine 3406 [running]:github.com/pb33f/libopenapi-validator/requests.(requestBodyValidator).ValidateRequestBody(0xc00878e900, 0xc003411700)
/go/pkg/mod/github.com/pb33f/libopenapi-validator@v0.0.33/requests/validate_body.go:32 +0x16a
github.com/pb33f/libopenapi-validator.(validator).ValidateHttpRequest.func2(0x0?, 0x0?)
/go/pkg/mod/github.com/pb33f/libopenapi-validator@v0.0.33/validator.go:247 +0x30
created by github.com/pb33f/libopenapi-validator.(*validator).ValidateHttpRequest in goroutine 3422
/go/pkg/mod/github.com/pb33f/libopenapi-validator@v0.0.33/validator.go:267 +0x332`

command used to run wiretap:
wiretap -u https://my-api-server-url.com/ --ws-host localhost -s smoke.json

@daveshanley
Copy link
Member

These issues should have been resolved in the latest version of the validator. Wiretap has been updated, can you try the latest?

@daveshanley
Copy link
Member

@pranayinos Did it work for you?

@daveshanley
Copy link
Member

Cannot replicate this issue anymore. Closing.

@pranayinos
Copy link
Author

pranayinos commented Mar 6, 2024

It worked for me.
Sorry for late reply, I can see this issue is fixed. Thank you!!

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

2 participants