Update: Never mind, there was an issue on by VLANS, the new port used for the relay wasn’t in the firewall
Web POST requests are not working from WebCore.
I’m trying to setup the Google Assistant Relay, which is working great for everything except WebCore.
I’m sure this is something very obvious, but since I’m new to WebCore I’m not sure what I’m doing wrong.
Nothing seems to be processed via my REST API.
I can do a simple curl from another box, and it works as expected. So I know Assistant Relay is up and running.
i.e.
curl -d 'name=james&preset=dinner' http://xxx.xxx.xxx.xxx:3000/assistant
{"response":"","audio":"/server/audio?v=1591739823747","success":true}
This causes logs on my Relay, and my google home speakers play the test.
But when I test the piston, nothing fires.
I’ve tried both the json and form options
6/9/2020, 5:52:09 PM +115ms
+0ms ╔Received event [Home].time = 1591739530859 with a delay of -1745ms
+74ms ║RunTime Analysis CS > 15ms > PS > 51ms > PE > 9ms > CE
+77ms ║Runtime (37557 bytes) successfully initialized in 51ms (v0.3.110.20191009) (75ms)
+77ms ║╔Execution stage started
+87ms ║║[:]
+88ms ║║Executed virtual command log (2ms)
+89ms ║╚Execution stage complete. (12ms)
+90ms ╚Event processed successfully (90ms)
6/9/2020, 5:51:50 PM +761ms
+1ms ╔Received event [Home].test = 1591739510761 with a delay of 0ms
+75ms ║RunTime Analysis CS > 13ms > PS > 51ms > PE > 11ms > CE
+78ms ║Runtime (37554 bytes) successfully initialized in 51ms (v0.3.110.20191009) (77ms)
+79ms ║╔Execution stage started
+84ms ║║Cancelling statement #1's schedules...
+93ms ║║Sending internal web request to: XXX.XXX.XXX.XXX:3000/assistant
+96ms ║║Executed virtual command httpRequest (4ms)
+98ms ║║Requesting a wake up for Tue, Jun 9 2020 @ 5:52:10 PM EDT (in 20.0s)
+114ms ║╚Execution stage complete. (36ms)
+123ms ║Setting up scheduled job for Tue, Jun 9 2020 @ 5:52:10 PM EDT (in 19.976s)
+131ms ╚Event processed successfully (131ms)