Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. {
  2. "error": {
  3. "name": "SequelizeUniqueConstraintError",
  4. "errors": [
  5. {
  6. "message": "name_UNIQUE must be unique",
  7. "type": "unique violation",
  8. "path": "name_UNIQUE",
  9. "value": "Silly Sally Almondo",
  10. "origin": "DB",
  11. "instance": {
  12. "id": null,
  13. "name": "Silly Sally Almondo",
  14. "description": "Cheese and potato pie",
  15. "icon": "SomethingForNow",
  16. "nameSlug": "silly-sally-almondo"
  17. },
  18. "validatorKey": "not_unique",
  19. "validatorName": null,
  20. "validatorArgs": []
  21. }
  22. ],
  23. "fields": {
  24. "name_UNIQUE": "Silly Sally Almondo"
  25. },
  26. "parent": {
  27. "code": "ER_DUP_ENTRY",
  28. "errno": 1062,
  29. "sqlState": "23000",
  30. "sqlMessage": "Duplicate entry 'Silly Sally Almondo' for key 'name_UNIQUE'",
  31. "sql": "INSERT INTO `organisations` (`id`,`name`,`description`,`icon`,`nameSlug`) VALUES (DEFAULT,'Silly Sally Almondo','Cheese and potato pie','SomethingForNow','silly-sally-almondo');"
  32. },
  33. "original": {
  34. "code": "ER_DUP_ENTRY",
  35. "errno": 1062,
  36. "sqlState": "23000",
  37. "sqlMessage": "Duplicate entry 'Silly Sally Almondo' for key 'name_UNIQUE'",
  38. "sql": "INSERT INTO `organisations` (`id`,`name`,`description`,`icon`,`nameSlug`) VALUES (DEFAULT,'Silly Sally Almondo','Cheese and potato pie','SomethingForNow','silly-sally-almondo');"
  39. },
  40. "sql": "INSERT INTO `organisations` (`id`,`name`,`description`,`icon`,`nameSlug`) VALUES (DEFAULT,'Silly Sally Almondo','Cheese and potato pie','SomethingForNow','silly-sally-almondo');"
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement