Skip to content

After running Code Listing 4.32, it is found that curl did not return as expected. #14

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

Open
AshinZhou opened this issue Apr 12, 2025 · 0 comments

Comments

@AshinZhou
Copy link

When running Code Listing 4.32, it didn't return as expected. The error is "Request body deserialize error : missing field id at line 4 column 1". I'm not sure if this is the expected result or if there is a problem with the Chinese translated version of the book I'm currently reading. I found that when running the code in the author's code repository at /ch_04/fiunal and using the following curl command:
curl --location --request POST 'http://localhost:3030/questions' \ --header 'Content-Type: application/json' \ --data-raw '{ "title":"New question", "content":"New content" }'

It returned "router not found". Thank you for answering my question.

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

1 participant