Validation error should be displayed as human-friendly message

Bug report

Trying to create a note with the title “Design isn’t crafting a beautiful textured button with breathtaking animation. It’s figuring out if there’s a way to get rid of the button altogether.” and getting the bug report at the end.

Shortening the title fixed it.

Info

  • Platform: Windows 10
  • App Version: (4.6.1)
  • Plugins: I have 10+ of them, but because shortening the title worked for me, I think it’s not related to plugins.

Debug Info

Error: Could not call remote method 'put'. Check that the method signature is correct. Underlying error: Invalid note document
Underlying stack: Error: Invalid note document
    at t.default.put (C:\Users\moyi\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\main.js:1:46511)
    at electron/js2c/browser_init.js:6651:63
    at EventEmitter.<anonymous> (electron/js2c/browser_init.js:6504:21)
    at EventEmitter.emit (events.js:203:13)
    at EventEmitter.emit (domain.js:476:20)
    at WebContents.<anonymous> (electron/js2c/browser_init.js:3871:23)
    at WebContents.emit (events.js:203:13)
    at WebContents.EventEmitter.emit (domain.js:476:20)
    at WebContents.topLevelDomainCallback (domain.js:131:23)

at electron/js2c/browser_init.js:6653:17
at EventEmitter.<anonymous> (electron/js2c/browser_init.js:6504:21)
at EventEmitter.emit (events.js:203:13)
at EventEmitter.emit (domain.js:476:20)
at WebContents.<anonymous> (electron/js2c/browser_init.js:3871:23)
at WebContents.emit (events.js:203:13)
at WebContents.EventEmitter.emit (domain.js:476:20)
at WebContents.topLevelDomainCallback (domain.js:131:23)

Hi Samantha,

Thank you for reporting it.
That’s an intended behavior as note title’s max length is 128:

But looks like the app should display more human-friendly error :sweat_smile:

1 Like

improved the error message in v5.0.0-beta.1!

1 Like