Error 1364: Field 'id' doesn't have a default value #744

Closed
opened 2020-12-19 13:30:06 +00:00 by alpaka · 6 comments

with the latest docker container I am unable to create new tasks and receive the following error messages:

2020-12-19T13:17:08.529316163Z: ERROR   ▶ handler/CreateWeb 174 Error 1364: Field 'id' doesn't have a default value
2020-12-19T13:17:08.529537478Z: WEB     ▶ 192.168.178.50  PUT 500 /api/v1/lists/8 11.486715ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0

I did not modify anything and the setup worked flawless beforehand. The only thing I did was reguraly update the docker containers.

Any ideas what might be causing this?

with the latest docker container I am unable to create new tasks and receive the following error messages: ``` 2020-12-19T13:17:08.529316163Z: ERROR ▶ handler/CreateWeb 174 Error 1364: Field 'id' doesn't have a default value 2020-12-19T13:17:08.529537478Z: WEB ▶ 192.168.178.50 PUT 500 /api/v1/lists/8 11.486715ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0 ``` I did not modify anything and the setup worked flawless beforehand. The only thing I did was reguraly update the docker containers. Any ideas what might be causing this?
Owner

Maybe this is cause by b0d4902406

What's your setup? (what db etc?)

Maybe this is cause by https://kolaente.dev/vikunja/api/commit/b0d4902406aeaf572c9ca7f721f64305e8126cec What's your setup? (what db etc?)
konrad added the
kind/bug
label 2020-12-19 13:45:47 +00:00
Owner

I can confirm this does not work at least with mysql, but does work with sqlite. (Didn't test postgres yet)

I can confirm this does not work at least with mysql, but does work with sqlite. (Didn't test postgres yet)
Owner

Ouuh so it looks like the changes from b0d4902406 removed the auto increment from the id column(s). Not sure why the tests did not catch that...

Ouuh so it looks like the changes from https://kolaente.dev/vikunja/api/commit/b0d4902406aeaf572c9ca7f721f64305e8126cec removed the auto increment from the id column(s). Not sure why the tests did not catch that...
Owner

Looks like this is only an issue with mysql.

Looks like this is only an issue with mysql.
Owner

Fixed in 9508d0faee

A release should be ready in ~30min.

Fixed in https://kolaente.dev/vikunja/api/commit/9508d0faee8c18383e325f001fc4443776cd34a2 A release should be ready in ~30min.
Author

awesome - what a fast fix! Thanks for your awesome work!

awesome - what a fast fix! Thanks for your awesome work!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#744
No description provided.