Custom endpoint calling fail

Hi,

I’m trying to call a custom endpoint of Rhino from a Python script. Occasionally, the plugin runs perfectly and returns a 200 response, but other times it fails and returns a 500 Internal Server Error(The remote server returned an error: (500) Internal Server Error.). I’m not exactly sure what’s causing this inconsistency.Also attached python script which call custom endpoint and c# code for registering endpoint.

Could someone guide me on how to troubleshoot or resolve this issue?


not sure if this helps - but maybe a part of the puzzle:

HostUtils.RegistercomputeEndpoint("intech/bbcomparator",typeof(FaceIndexData));

my guess - should be in the Onload override

see also here:

What if it is grasshopper plugin like below?
It dosen’t have onLoad override.