ganymede icon indicating copy to clipboard operation
ganymede copied to clipboard

validation error

Open xdewx opened this issue 4 years ago • 2 comments

request & response from websocket is normal ,but the data can't pass the validation of the frontend! the property of username is empty.

jlab_core.e1237d77b77be55fe336.js?v=e1237d77b77be55fe336:2 Uncaught Error: Kernel message validation error: Missing property 'username'
    at Object.n [as validateProperty] (jlab_core.e1237d77b77be55fe336.js?v=e1237d77b77be55fe336:2)
    at s (jlab_core.e1237d77b77be55fe336.js?v=e1237d77b77be55fe336:2)
    at Object.a [as validateMessage] (jlab_core.e1237d77b77be55fe336.js?v=e1237d77b77be55fe336:2)
    at WebSocket._onWSMessage (jlab_core.e1237d77b77be55fe336.js?v=e1237d77b77be55fe336:2)

xdewx avatar Oct 22 '21 02:10 xdewx

image

xdewx avatar Oct 24 '21 09:10 xdewx

The Ganymede kernel works fine in notebooks but I get the same validation error in using the kernel in JupyterLab. The issue may be similar to symmetryinvestments/jupyter-wire#27. I'm just starting out with java but it looks like the Message class has a username attribute so I'm not sure where it's getting dropped. https://github.com/allen-ball/ganymede/blob/a7cfca7eaf4608c12e8587dac154e93f7f5ee285/ganymede-kernel/src/main/java/ganymede/server/Message.java#L110-L120

onepunchdan avatar Dec 16 '21 18:12 onepunchdan