Hops broken in Rhino 7.13? Cannot deserialized JSON array

ok; that’s what I thought because it is the exact same mistake I made. We should handle this case in Hops and I’ll make a feature request for it.

You need to enter the path to the exact endpoint you want to call. For example
http://127.0.0.1:5000/pointat

1 Like

OMG, ok! Rookie mistake. :rofl: Thanks for figuring that out!

Yes, it would probably be a good idea to check for this, since it’s not that obvious that you need to target the function.

We’re also learning how to do a better job of support :). If you would have pasted just a little more json in your screenshot above I would have caught it.

I added this to the wishlist for Hops

1 Like

Hey! I’m stuck with the same problem, when entering

http://127.0.0.1:5000/pointat

I’m getting a recurring:

[INFO] 127.0.0.1 - - [06/Jan/2023 14:15:58] "GET /pointat HTTP/1.1" 404 -
[INFO] 127.0.0.1 - - [06/Jan/2023 14:15:58] "GET /pointat HTTP/1.1" 404 -

No idea what else to do

Can you confirm that the server is indeed running and that the endpoint is spelled correctly as to what’s being defined in the server side code? You’ve probably got it correct but it’s worth double checking. In fact, could you copy you’re /pointat definition in your python server code so I can take a look?

Also there was a recent update to the ghhops_server library. You may want to run the pip install command to update it to 1.5.4.

1 Like

Thanks, I solved it. I stupidly wrote pointAt in the definition, that was the whole problem

1 Like