Swiftlet in shapediver app builder

Hello @snabela

This is a great option to access the HTTP request inside Grasshopper in the Shapediver app. Thanks for the development. However, I have a problem. In a simple test, I created an endpoint, as you can see in the picture. The Grasshopper file opens locally and works properly; Swiftlet sends the post, and I receive the JSON on the endpoint view. But, the same grasshopper definition, when I upload it in the Shapediver app builder, does not send any post; I am not able to track what is wrong, as it’s inside the Shapediver app builder. The only thing I know is that no matter whether I change the input or reset the boolean, my endpoint does not receive any data from the app.
I tried both having a predefined point and the Shaperiver’s direct point input for the box of the in-app builder.


simple_test_input.gh (8.8 KB)

Looking at your screenshot it seems that you are using Swiftlet to connect to a local HTTP server (see localhost - Wikipedia). Connecting to this HTTP server will only work locally. If you want your server to be called from the public internet, you would need a public IP address (and potentially loosening your firewall etc).

Hello,

Yes, I totally forgot it, silly mistake :sweat_smile:
I will check it out.