Make a web request/IFTTT integration fails


#1

1) Give a description of the problem
All attempts to make a web request or use IFTTT integration fail for me. A MissingMethodException is thrown for both Make a Web Request and IFTTT integration.

2) What is the expected behaviour?
A web method is called on an IFTTT or other server with exposed web methods.

3) What is happening/not happening?
This exception is thrown:

An error occurred while executing the event: groovy.lang.MissingMethodException: No signature of method: physicalgraph.app.LocationWrapper.hasCommand() is applicable for argument types: (java.lang.String) values: [httpRequest]

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full
5/19/2019, 8:39:13 PM +779ms +1ms â•”Starting piston... (v0.3.10b.20190514) +546ms â•‘â•”Subscribing to devices... +593ms â•‘â•‘Subscribing to Home.:de0ed8c9f29601e3ec8f1584cae0969c:.@StartClimateControl... +745ms â•‘â•šFinished subscribing (217ms) +778ms â•‘Comparison (integer) 2 changes = false (1ms) +780ms â•‘Cancelling condition #2's schedules... +788ms â•‘Comparison (integer) 2 is_different_than (integer) 0 = true (4ms) +790ms â•‘Cancelling condition #1's schedules... +801ms â•‘Comparison (integer) 2 is_equal_to (integer) 1 = false (2ms) +817ms â•‘Comparison (integer) 2 is_equal_to (integer) 2 = true (3ms) +834ms â•šPiston successfully started (833ms) 5/19/2019, 8:39:04 PM +185ms +1ms â•”Received event [Home].:de0ed8c9f29601e3ec8f1584cae0969c: = @StartClimateControl with a delay of 97ms +115ms â•‘RunTime Analysis CS > 27ms > PS > 63ms > PE > 25ms > CE +118ms â•‘Runtime (42764 bytes) successfully initialized in 63ms (v0.3.10b.20190514) (115ms) +119ms â•‘â•”Execution stage started +128ms â•‘â•‘Comparison (integer) 2 changes = true (0ms) +129ms â•‘â•‘Condition #2 evaluated true (4ms) +135ms â•‘â•‘Comparison (integer) 2 is_different_than (integer) 0 = true (2ms) +137ms â•‘â•‘Condition #3 evaluated true (6ms) +138ms â•‘â•‘Condition group #1 evaluated true (state did not change) (13ms) +146ms â•‘â•‘Comparison (integer) 2 is_equal_to (integer) 1 = false (2ms) +148ms â•‘â•‘Cancelling condition #5's schedules... +149ms â•‘â•‘Condition #5 evaluated false (8ms) +151ms â•‘â•‘Cancelling condition #4's schedules... +152ms â•‘â•‘Condition group #4 evaluated false (state changed) (12ms) +158ms â•‘â•‘Comparison (integer) 2 is_equal_to (integer) 2 = true (2ms) +160ms â•‘â•‘Condition #13 evaluated true (6ms) +162ms â•‘â•‘Condition group #12 evaluated true (state did not change) (8ms) +165ms â•‘â•‘Cancelling statement #14's schedules... +177ms â•‘â•‘An error occurred while executing the event: groovy.lang.MissingMethodException: No signature of method: physicalgraph.app.LocationWrapper.hasCommand() is applicable for argument types: (java.lang.String) values: [httpRequest] +180ms â•‘â•šExecution stage complete. (62ms) +182ms â•šEvent processed successfully (182ms)


#2

Pls block out the import code also if you want to keep the rest of the URL private.


#3

Thanks, but does anyone know what is causing this?


#4

I’ve changed my key on IFTTT.


#5

Does it work now?


#6

No, same exception. The issue is not IFTTT. This something on the WebCoRE side.


#7

Have you tried using the direct IFTTT task instead of web request?


#8

Yes, exact same exception.


#9

Hmm, I have not encountered that before… can you hit that same URL from a browser?


#10

Yes, it work like a champ and no issues before dropping the url. I will add it back this afternoon. I upgraded my software to the latest revision Friday and again on Sunday after backing up my pistons, nuking my instance and restoring it.


#11

What about just a regular web request to any endpoint, does that one fail also?


#12

In webcore. Any web request fails with the same exception. I don’t even send a payload, the other end never even knows it was attempted to call it.


#13

I’m on older code so I can’t confirm that it may be the culprit… maybe @ipaterson can offer more troubleshooting tips.

I don’t use any other custom ST apps that does web calls but I’m curious if there is one you can try. If that fails also, my next assumption would be your ST hub is getting blocked from making web requests… but that is just a guess.


#14

Try using Location rather than specific devices to issue the requests. with {$currentEventDevice} may be the cause of this exception.


#15

Thank you for help, changing things to use Location helped. Also could you be more specific on the IFTTT docs or text in the app? It says URL, all it really wants is the key IFTTT provided me (after /with/key/) and to put that into the text box on setting => integrations.