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 ?