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

Update post.go #40

Open
wants to merge 1 commit into
base: episode_7
Choose a base branch
from

Conversation

tommasomoretto
Copy link

Hi, first ok all compliment for your amazing contents. Try to understanding better the refactor you did on productAPI (out-screen between lesson 6 and 7) I find this bug which compromise both the post and put requests.
The error is the following:
"interface {} is nil, not validator.ValidationErrors"
And this is due to the fact that row 20 extract from the context a pointer to Product witch can not be cast to Product.
Hope you'll find useful this reporting. Keep going with your video you are an amazing teacher! =)

Hi, first ok all compliment for your amazing contents. Try to understanding better the refactor you did on productAPI (out-screen between lesson 6 and 7) I find this bug which compromise both the post and put requests.
The error is the following:
"interface {} is nil, not validator.ValidationErrors"
And this is due to the fact that row 20 extract from the context a pointer to Product witch can not be cast to Product.
Hope you'll find useful this reporting. Keep going with your video you are an amazing teacher! =)
Copy link
Owner

@nicholasjackson nicholasjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I don't quite know what I have done here, as this is also broken in later episodes. I will run through at lunchtime and try and figure out how best to merge this.

@tommasomoretto
Copy link
Author

tommasomoretto commented Mar 30, 2021 via email

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

Successfully merging this pull request may close these issues.

2 participants