I’ve set up a Rhino Compute server following the guide at Deploy to IIS using Azure. The server functions as expected, but I encounter issues when it processes a hop. Regardless of whether I provide a local filepath or a URL for the hop, I always receive a 200 OK response from the server, but the JSON returned is empty. The structure of the output is correct; it’s just that there’s no data.
I have installed the Hops plugin (along with a few others) using the package manager under the RhinoComputeUser profile, but this has not resolved the issue. The server logs only show information-level events and 200 OK responses.
Has anyone else experienced this? Any suggestions on what might be going wrong or how to troubleshoot this further?
I am using the VIKTOR framework to make requests to my server, and I supply both the Compute URL and the API key as environment variables when I run my code. If I test on the server I get an error in on my Hop, but if I add my API key to my preferences in Grasshopper, it works just fine - does anybody know if there is a way to add this to my Compute Server’s config so that when it spins up grasshopper it is using the API key?
If I have just on grasshopper script running with regular components it works perfectly fine, but as soon as there is an external hop within that script I get a 401 unauthorized error.
Have you reached out to the Viktor guys? I’m not 100% how their setup works but it seems to be something from their end may not be sending or receiving the data correctly. Also the 401 error is telling that it’s likely that the API is not getting attached to the header in the request sent from Viktor and thus your getting an unauthorized error.