opened 11:00AM - 01 Mar 21 UTC
type: bug
tag: component: bokehjs
#### ALL software version info (bokeh, python, notebook, OS, browser, any other …relevant packages)
bokeh 2.3, python 3.7, OS windows, browser chromium
#### Description of expected behavior and the observed behavior
I expect the code below not to lead to an error in the front-end, which was the case up to Bokeh 2.1.1
Since Bokeh 2.2 it gives an error, see screenshot below.
@mattpap mentioned on the discourse page it should not give this error in any case: https://discourse.bokeh.org/t/bokeh-2-2-page-does-not-render-need-help-debugging/6221
When this error occurs it stops rendering the rest of the page.
I guess the dict does not have the structure that the columndatasource component expects, but I would expect an error on the backend side then.
#### Complete, minimal, self-contained example code that reproduces the issue
```
from bokeh.plotting import curdoc, figure
from bokeh.models import ColumnDataSource
source = ColumnDataSource(data={'xs': [1, 1, 1],
'ys': [3, 3, 3],
'labels': ['one', 'two', 'three']})
p = figure(title="Plot", name="p",
match_aspect=False, sizing_mode="stretch_both")
p = figure(width=600, height=300)
p.multi_line(xs='xs', ys='ys', legend_group='labels', source=source)
curdoc().add_root(p)
```
#### Stack traceback and/or browser JavaScript console output & screenshots or screencasts of the bug in action
