I have 2 collections:
- Microskills
- Skills
Microskills have SkillId.
Here is the list of steps to reproduce this issue:
- In “Add Microskill”, I am shown this “create a new Skill” green text.
- Upon clicking this, I land on “create skill” page.
- In this page, if creation of Skill fails due to validation error, then no error message is shown.
Expected behavior
Error message to be shown
Actual behavior
No Error message is getting shown
Failure Logs
Here is the browser console log.
POST http://localhost:3310/forest/skills 500 (Internal Server Error)
vendor-6fea72923c819…759e3b8ff7.js:20933
r {isAdapterError: true, stack: "Error: Ember Data Request POST http://localhost:33…dor-6fea72923c819ced706dc8759e3b8ff7.js:1396:698)", description: undefined, fileName: undefined, lineNumber: undefined, …}
description: undefined
errors: Array(1)
0:
detail: "Field 'name' doesn't have a default value"
status: 500
__proto__: Object
[]: (...)
firstObject: (...)
hasArrayObservers: (...)
lastObject: (...)
length: 1
__proto__: Array(0)
fileName: undefined
isAdapterError: true
lineNumber: undefined
message: "Ember Data Request POST http://localhost:3310/forest/skills returned a 500↵Payload (application/json; charset=utf-8)↵[object Object]"
name: "Error"
number: undefined
stack: "Error: Ember Data Request POST http://localhost:3310/forest/skills returned a 500↵Payload (application/json; charset=utf-8)↵[object Object]↵ at r (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13745:19)↵ at new r (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13749:54)↵ at r.handleResponse (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13819:26)↵ at r.handleResponse (http://app.forestadmin.com/assets/client-35e188907a4790012158017c8e2e66b3.js:6405:20)↵ at r [as handleResponse] (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:3462:9)↵ at s (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13786:14)↵ at http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13829:8↵ at r.Ember.RSVP.Promise.h.error (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13829:19)↵ at u (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:1395:118)↵ at Object.fireWith [as rejectWith] (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:1396:698)"
__proto__: Error
Context
- Package Version: 6.2.1
- Express Version: 4.16.4
- Sequelize Version: 5.15.2
- Database Version: MySQL 5.7
- Project Name: xs-library-local-dev