@genericname1 said in action id:
Can you tell me, where can I find all the available commands like this?
I suggest that you take the time to periodically review the XML code of your script to understand what BAS is doing when you are using it.
I am running a javascript action that attempts to do a GET request using fetch. I am using the exact example that shows up in documentation for that rule.
async function getPost(id) {
return await fetch(`https://jsonplaceholder.typicode.com/posts/` + id)
.then((res) => res.json());
}
[[POST]] = await getPost(1);
However, when I call this code it always fails with the message "TypeError: Failed to fetch". Does anyone know what I'm doing wrong?