Error message not shown when creating an associated record fails

I have 2 collections:

  1. Microskills
  2. Skills

Microskills have SkillId.

Here is the list of steps to reproduce this issue:

  1. In “Add Microskill”, I am shown this “create a new Skill” green text.
  2. Upon clicking this, I land on “create skill” page.
  3. 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

Hey @Shriram_Balakrishnan,

Thanks for reporting your issue!
May I ask you to send screenshots/screencast of your issue so that I’m sure what’s your problem and how it happens exactly?

Thank you.

Here is the screenshot of error.

Note that this happens only when I try to create Topic from the MicroTopic Creation form by clicking on the “Create a new Topic” green text present on the Topic field of MicroTopic creation form.

Hi @Shriram_Balakrishnan,

I’m able to reproduce your issue, the error message does not seems to appear on my end either when creating a “Skill” from the “Microskill” creation form.
I’ve created the issue here:

Thanks for reporting this !

1 Like

The fix has been released this morning. You will need to refresh the app to ensure you are running the latest version.

Let me know if everything works on your side.

1 Like

@Shriram_Balakrishnan could you please tell us if the issue is fixed? :pray:
Thanks a lot!

@jeffladiray @anon34731316 It works as expected now. Thanks for the fix.

2 Likes