Skip to content

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

Open
@AshinZhou

Description

@AshinZhou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions