Help With GET Request & Auth Token

1) Give a description of the problem
Can't get piston to successfully send GET request with auth token

2) What is the expected behaviour?
API responds with JSON

3) What is happening/not happening?
API not responding

**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full

2/14/2022, 9:08:07 PM +205ms
+4ms ╔Received event [Home].wc_async_reply = httpRequest with a delay of 0ms, canQueue: true, calledMyself: false
+13ms ║RunTime initialize > 12 LockT > 0ms > r9T > 2ms > pistonT > 0ms (first state access 10 5 7)
+15ms ║Runtime (5954 bytes) initialized in 2ms (v0.3.114.20220203_HE)
+20ms ║╔Execution stage started
+31ms ║║Executed virtual command setVariable (2ms)
+32ms ║║Exiting piston at end of Every timer block
+39ms ║╚Execution stage complete. (19ms)
+61ms ║Setting up scheduled job for Mon, Feb 14 2022 @ 9:08:36 PM EST (in 29478ms)
+64ms ╚Event processed successfully (60ms)
2/14/2022, 9:08:06 PM +741ms
+5ms ╔Received event [Home].time = 1644890886695 with a delay of 46ms, canQueue: true, calledMyself: false
+14ms ║RunTime initialize > 14 LockT > 0ms > r9T > 2ms > pistonT > 0ms (first state access 12 6 8)
+16ms ║Runtime (6041 bytes) initialized in 2ms (v0.3.114.20220203_HE)
+23ms ║╔Execution stage started
+31ms ║║Cancelling statement #2's schedules...null
+36ms ║║Sending asynchttpGet web request to: fireboard.io/api/v1/devices.json
+38ms ║║Executed virtual command httpRequest (2ms)
+40ms ║║Requesting a wake up for Mon, Feb 14 2022 @ 9:08:30 PM EST (in 24000ms)
+43ms ║║Exiting piston at end of Every timer block
+49ms ║╚Execution stage complete. (25ms)
+71ms ║Setting up scheduled job for Mon, Feb 14 2022 @ 9:08:30 PM EST (in 24018ms),with 1 more job pending
+74ms ╚Event processed successfully (69ms) 

If I use this...

curl -X GET https://fireboard.io/api/v1/devices.json? -H "Authorization: Token REDACTED" -o C:\Fireboard\Fireboard.txt

It spits out a text file with the JSON I need to pull info from. So it seems everything works as expected if I can just get webCoRE to format the request properly.

maybe $response.json.id

Edit: had some time to play, assuming it is valid JSON coming back $response.id should have worked.

(If you' like to PM the return string, I may be able to play with it a little to get a valid JSON for you.)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.