1) Give a description of the problem
A ‘web request’ GET errors instead of returning the expected data.
A request via a browser works fine using the same url: http://www.emoncms.org/feed/value.json?id=97715. The response in a browser is: “SOME_VALUE_HERE”.
I have tried both JSON and FORM type requests.
I have another get request to another site running fine, but that site is returning formatted json not a value in “”".
2) What is the expected behavior?
The web request would place the above data in $response.
3) What is happening/not happening?
Log shows an error: “Error executing external web request: groovyx.net.http.ResponseParseException: OK”
4) Post a Green Snapshot of the piston
Note that the green snapshot has altered the URL I was using - the real url is given above.
5) Attach any logs (From ST IDE and by turning logging level to Full)
|+0ms|╔Received event [Home].time = 1519575387152 with a delay of -997ms|
|—|---|
|+95ms|║RunTime Analysis CS > 17ms > PS > 55ms > PE > 23ms > CE|
|+97ms|║Runtime (37033 bytes) successfully initialized in 55ms (v0.2.102.20180116) (95ms)|
|+98ms|║╔Execution stage started|
|+107ms|║║Cancelling statement #2’s schedules…|
|+113ms|║║Sending external web request to: www.emoncms.org/feed/value.json?id=97715|
|+277ms|║║Error executing external web request: groovyx.net.http.ResponseParseException: OK|
|+278ms|║║Executed virtual command httpRequest (166ms)|
|+281ms|║║Executed virtual command setVariable (1ms)|
|+284ms|║╚Execution stage complete. (187ms)|
|+285ms|║Setting up scheduled job for Sun, Feb 25 2018 @ 4:17:27 PM GMT (in 60.712s)|
|+291ms|╚Event processed successfully (291ms)|