Issues with Hops on Rhino Compute Server Set Up via Azure
Hi all,
I've successfully set up a Rhino Compute server following the guide at Deploy to IIS using Azure. The server itself functions as expected, but I encounter issues specifically when it processes a hop. Regardless of whether I use a local filepath or a URL for the hop, I consistently receive a 200 OK
response from the server. However, the JSON returned is empty—the structure of the output is correct, but it contains no data.
Additionally, I have installed the Hops plugin (along with a few others) using the package manager under the RhinoComputeUser profile. Unfortunately, this has not resolved the issue. The server logs only show information-level events and 200 OK
responses.
Interestingly, I observed in the log files that when the hops request is sent to the server, it results in a 401 error specifically for hops, although the main service still outputs 200 OK
from the server. I have configured my Compute URL and my API key as environment variables when starting the app. Here is the code snippet I use to make the call to my server:
output = gh.EvaluateDefinition(
str(Path(__file__).parent / 'script'),
input_trees
)
This code executes correctly, but the hop included within that script yields empty output with a 401 error. Is there any way to set the API key for hops within my scripts?
In the log files I can also see the same request receives a 401 response from hops: (C:\Users\RhinoComputeUser\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Hops\0.16.7\rhino.compute\logs),
but a 200 response from IIS: (C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\rhino.compute\logs).
If I run the script locally and set my hops remote solver to my Server's URL and add my API key, it executes correctly.
Thanks,
Josh