How do I convert a Grasshopper file into 3DM using compute JS library

Hello,

So I’m trying to create a web application that will load a Grasshopper file and convert into 3DM to then display on the screen using threeJS. I’ve been using GitHub - mcneel/rview: Test Web App for rhino3dm.js as a template for presenting the 3DM data which works fine if I start with a 3DM file. I’ve also been referencing rhino-developer-samples/compute/js/SampleGHConvertTo3dm/script.js at 7 · mcneel/rhino-developer-samples · GitHub to use compute to evaluate a definition and then convert to 3DM.

I used the spikeyThing.gh file included in this example as a test, and was able to get a successful response back from my local compute server, however, when I try to then process and present it, it doesn’t seem to translate properly and I just get a screen with an empty grid.

I’ve also tried with a basic grasshopper file of my own which I’ve uploaded to this topic, but I keep getting a 500 error from the compute server with the following error:

System.Exceptions.PayAttentionException: Looks like you've missed something...
   at compute.geometry.GrasshopperDefinition.Solve(Int32 rhinoVersion) in C:\Users\shawn\Documents\Code\compute.rhino3d\src\compute.geometry\GrasshopperDefinition.cs:line 817
   at compute.geometry.ResthopperEndpointsModule.GrasshopperSolveHelper(Schema input, String body, Stopwatch stopwatch, HttpContext ctx) in C:\Users\shawn\Documents\Code\compute.rhino3d\src\compute.geometry\ResthopperEndpoints.cs:line 111
   at compute.geometry.ResthopperEndpointsModule.Grasshopper(HttpContext ctx) in C:\Users\shawn\Documents\Code\compute.rhino3d\src\compute.geometry\ResthopperEndpoints.cs:line 174
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
RC  [17:00:02 ERR] HTTP POST /grasshopper responded 500 in 59.8248 ms

Any help and additional resources on this would be much appreciated. Also if there’s any additional information I can add to provide more context please let me know

Here’s the GH file I mentioned previously
BOX_DEMO.gh (11.9 KB)
BOX_DEMO.ghx (76.1 KB)