Yesterday, I uploaded definition with a script that was approved, but apparently something isn’t working. The script is supposed to download data from external URL. The data is correct because the definition works correctly in Grasshopper. Can i provide lint to the definition or the name of the company under which the account is created so you can check what’ s not working?
Please provide a link to the model. Ideally, if you could create a minimal definition showing the issue, it would help our team investigate more efficiently.
If I share a link to the model here, will no one else have access? A minimal definition would be difficult to achieve in this case.
No, no one else will have access if your model is private.
If the issue comes from the script, it could make sense to internalize all inputs and create a definition containing only the script and testing its outputs. I can try to help on the final model, but that will also likely be, on my side, difficult to achieve.
Ok, I shortened the definition as much as possible. The tag with text should display but it doesn’t. It works fine in Grassshopper.
You can check in the computation analytics of your model which components are throwing errors, in your case, the script component throws the following errors:
This happens because you are using external packages and libraries which you did not reference (using the #r command) at the beginning of your script. You are using two external libraries in the script:
System.Text.Json
System.Memory
System.Text.Json is available on ShapeDiver servers, so you can use it by including the line:
#r "nuget: System.Text.Json”
Unfortunately, the System.Memory package is not installed on the servers, therefore your script will not properly work for the time being. We will review if it makes sense to install this library, but in the meanwhile I would recommend that you request data from external URLs using the Switflet plugin, which will provide more reliable results and a better performance.
Thanks, now it works as it should with Switflet.
