Automation works, but has an error

EDIT: Updated and everything worked…

Been using this as is, without change for few months, no problems. Now, it completes, but it does not move past the ‘Turn Them Off’ node because of the API error.

I took this from a larger flow thats why in here theres nothing after it, but there normally is.

[{"id":"37a30c076e8e95f2","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"7e4a2f028346016e","type":"ha-get-entities","z":"37a30c076e8e95f2","name":"Get Lights That are On","server":"ab3e2c53.e3491","version":0,"rules":[{"property":"entity_id","logic":"starts_with","value":"light.","valueType":"str"},{"property":"entity_id","logic":"does_not_include","value":"light.loft_lamp, light.lamp1,light.kitchen_sink, light.porch, light.master_bedroom, light.master_bathroom, light.kitchen_cabinet_light_strip, light.kitchen_island_light_strip, light.master_bedroom, light.master_bedroom_lamp_jims_side, light.master_bedroom_lamp_christina_side, light.master_bedroom_closet, light.master_bathroom_shower","valueType":"str"},{"property":"state","logic":"is","value":"on","valueType":"str"}],"output_type":"array","output_empty_results":true,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":1145,"y":207,"wires":[["8190bb62a4a2b419"]]},{"id":"8190bb62a4a2b419","type":"switch","z":"37a30c076e8e95f2","name":"","property":"payload.length","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":1149,"y":315,"wires":[["8918e0102408123a"],[]]},{"id":"8918e0102408123a","type":"api-call-service","z":"37a30c076e8e95f2","name":"Turn Them Off","server":"ab3e2c53.e3491","version":3,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"","data":"{\"entity_id\": $join(payload.entity_id,\",\")}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1169,"y":441,"wires":[[]]},{"id":"c11ec1f753292d3f","type":"inject","z":"37a30c076e8e95f2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1159,"y":81,"wires":[["7e4a2f028346016e"]]},{"id":"ab3e2c53.e3491","type":"server","name":"AvilaSmartHomeRpi","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

image