[help] Web request error



1) Give a description of the problem
I try to make a web request to weather api. It works perfectly in one piston and when I copy the block to another piston where I have other web request, I get this error in the log and I dont understand what it could be? Is it because I have multiple web request in the same piston?

An error occurred while executing the event: java.lang.ClassCastException

4) Post a Green Snapshot of the pistonimage




Ok, I found it! I just use the (decimal($response.observations.metric.pressure_Trend[0])>0? “ok”:“else”) inside my set variable. The response must be considered as string so I change it to decimal before to check if its higher or lower than 0…
So it was the set variable and not the request the problem!