From 68053eb387f365193fd743004bef62f9fc6a4600 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Tue, 27 Oct 2020 13:52:19 +0000 Subject: [PATCH] Handle non-JSON-serializable result types --- Server/Controllers/RunController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Controllers/RunController.cs b/Server/Controllers/RunController.cs index 9ed8786..71789aa 100644 --- a/Server/Controllers/RunController.cs +++ b/Server/Controllers/RunController.cs @@ -38,7 +38,7 @@ public async Task EvaluateCellAsync([FromBody] ExecuteRequest cel switch (x) { case DisplayEvent displayEvent: - result.Output = displayEvent.Value; + result.Output = displayEvent.Value?.ToString(); break; case CommandFailed commandFailed: result.CommandFailedMessage = commandFailed.Message;