Error sending HTTP POST JSON formatted via webCore


#1

1) Give a description of the problem
I can send an HTTP POST to my assistant relay running on a PI via Postman. However, when I try to use Make Web Request via webCore I get an error in WC and ST.

2) What is the expected behaviour?
Since My ST hub is on the same network as the PC running Postman I should be able to send HTTP POST commands to my assistant relay via WC as I can via Postman

3) What is happening/not happening?
HTTP POST times out with an error. I have tried making the request with and without the URL prefixed with HTTP and neither work

**4) Post a Green Snapshot of the piston![image|45x37]


(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
image


#2

Not sure if it was intended or not, but the IP you are sending to is an external IP… Not a local one.

I keep my Raspberry Pi and my PC’s all using static IPs, and then send commands directly using the IPv4 Address.


Also, unrelated, but I would change line 17 to say:
string command = (not set)
or it can backfire as your piston grows in complexity


#3

SOLVED
Thanks for the reply. I ended up getting it working by sending to my routers public IP and http port. I am then forwarding that packet to my assistant relay. Works great now.