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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [Bug]: agent.Struct fails to unmarshal response since 2.33.0 #2134
Comments
Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
I have a workaround solution by using
|
use |
@teemukataja thanks for the hint, fixed it in the pull request #2137 will be in the next release until then you have to set the default decoder by hand |
Bug Description
agent.Struct()
raises a null pointer exception.agent.Struct()
works in2.32.0
, but stopped working after2.33.0
, including the latest release2.38.1
.How to Reproduce
Working version with 2.32.0
2.32.0
ingo.mod
go mod tidy
Broken version 2.33.0-2.38.1
2.33.0
ingo.mod
go mod tidy
Expected Behavior
JSON response is unmarshalled into struct.
Fiber Version
2.33.0-2.38.1
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: