Shapediver: Problem with Endpoint Data Retrieval

Problem with Endpoint Data Retrieval

I am trying to display information from a REST API endpoint through an output. Initially, this works successfully; however, when the endpoint’s content is updated, the changes are not reflected in the output. This issue occurs when the model is uploaded to the ShapeDiver platform. Is there a way to resolve this?

Endpoint Data Received in Grasshopper

The width_inches value was modified to 35.5 in the endpoint, and the updated information is displayed in Grasshopper.


Retrieving Output and Printing Content Using ShapeDiver’s Method

  • Content obtained from the output (previous image) in the console log.
  • The output content retrieved (previous image) from the console log does not show the updated value, which should have changed from 25.5 to 35.5.



ShapeDiver includes a caching system of model computations: for a specific set of parameters, solutions are not recomputed on the servers, but solutions are instead pulled from the cache. In your case, if the API endpoint you are using has updated data, it will not be reflected if the set of parameters you are requesting has not changed.

We are working on including a way to disable caching completely for specific models in the library, I will update this topic once this becomes possible. In the meanwhile, you have the option to clear the cache of your model in order to punctually force re-computations of all parameter sets.

Hi Mathieu!
Clearing the cache of the model worked, thanks for the suggestion! However, ideally, having the option to disable caching completely is what we are looking for. Hopefully, this feature will be available soon. I’ll look forward to your next update on this. Many thanks!