⚠️ ERROR [ExceptionsHandler] Cannot add or update a child row: a foreign key constraint fails (~, CONSTRAINT `FK_~` FOREIGN KEY (`~`) REFERENCES `~` (`id`))
FK값이 빠졌을때 나는 에러
원인
FK값을 필수로 받아야하는데 그 값을 받지 않았을 때 나는 에러.
해결
FK값을 빼먹지 않았는 지 확인하고 값을 넣어주자.
'❗❗ ERROR ❗❗' 카테고리의 다른 글
[🚨️ERROR🚨️] Access denied for user 'root@'@'localhost' (0) | 2022.08.01 |
---|---|
[🚨️ERROR🚨️] RepositoryNotFoundError (0) | 2022.08.01 |
[🚨️ERROR🚨️] 포스트맨에서 post 시 무한 로딩이 걸리는데, DB에는 데이터 저장될 경우 (0) | 2022.08.01 |
[🚨️ERROR🚨️] Uncaught SyntaxError: Illegal return statement (0) | 2022.08.01 |
[🚨️ERROR🚨️] Uncaught SyntaxError: Invalid or unexpected token (0) | 2022.08.01 |