plotly/dash-renderer

raise better error message if trying to make a callback with an incomplete set of inputs

chriddyp opened this issue · 3 comments

Right now, we just get a "Cannot concat on undefined".

I think this is a duplicate of #57 which has a temporary fix in #60 and should also be addressed in plotly/dash#292

I think this may have been fixed when #60 was merged. From experimenting it seems that:

  1. inputs = [] -> callback is never fired
  2. inputs has length less than the number of arguments -> a server error is thrown
  3. inputs has proper length, but one of the ids does not exist in the DOM at the time the callback is fired -> an informative front-end exception is thrown due to #60

Is there an example of a dash app producing that error?

I'm assuming this has been addressed by some of our recent devtools improvements, but @chriddyp if there's still a problem here please open a new issue in dash.