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

Give an example on how to construct a POST request #9

Open
netlander opened this issue May 18, 2019 · 0 comments
Open

Give an example on how to construct a POST request #9

netlander opened this issue May 18, 2019 · 0 comments

Comments

@netlander
Copy link

netlander commented May 18, 2019

Either using curl or Postman:

Keep getting this error:

QueryFailedError: ER_NO_DEFAULT_FOR_FIELD: Field 'title' doesn't have a default value at new QueryFailedError (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\typeorm\error\QueryFailedError.js:11:28) at Query.<anonymous> (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\typeorm\driver\mysql\MysqlQueryRunner.js:169:45) at Query.<anonymous> (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\Connection.js:525:10) at Query._callback (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\Connection.js:491:16) at Query.Sequence.end (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24) at Query.ErrorPacket (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\protocol\sequences\Query.js:90:8) at Protocol._parsePacket (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\protocol\Protocol.js:291:23) at Parser._parsePacket (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\protocol\Parser.js:433:10) at Parser.write (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\protocol\Parser.js:43:10) at Protocol.write (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\protocol\Protocol.js:38:16)

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