RhinoCompute plugin (.rhp) does not return any content

My rhp plugin returns a 200 success code but no content in the body – it is supposed to return a simple text string. Here’s the simple plugin endpoint:

        public static string Hello(string name)
        {
            Logger.Log("Hello() invoked");
            try
            {
                return $"Hello {name}.";    
            }
            catch (Exception ex)
            {
                Logger.Log($"EXCEPTION: {ex.Message}, stack: {ex.StackTrace}");
                throw ex;
            }

        }

Supplying the method argument (“name”) as a json payload in the body OR also as a url parameter. Both have the same effect - a 200 returned but no body content:

Am I doing something wrong in my Hello() method in terms of the return type causing the method to not be invoked or incorrectly handled by Compute ?

Solved - i was sending the input json incorrectly formatted - this lead to the middleware (ComputeGeometry.Post) being unable to parse/deserialize it and forward it to the method in our plugin - hence the method worked when called directly from Rhino but not when brokered via Rhino.Compute.

The payload is expected to be a json ARRAY ! Even if the plugin method has just a single parameter.
So for our method signature :
public static string Hello(string name)

The json payload should look like this:
["dan"]

(and not {"name":"dan"} etc)

For a method signature like this
public static string GreetMe(string name, int age, double height, bool isMale)

The json payload should look like this:
["dan",30,1.75,true]