javiermarcon
Member
Hello, I want to make a page that redirects to an url probided by a pabbly automation so I created the html that fetches the data from a pabbly webhook, but the pabbly webhook always answers {"status":"error","message":"Invalid WebHook Data"} and doesn't get the response. my web page has the following code:
How can I get the webhook to work and grab its response?
JavaScript:
<script>
const pabbliURL = 'https://connect.pabbly.com/workflow/sendwebhookdata/IjU3NjUwNTZkMDYzMjA0MzQ1MjZiNTUzMDUxMzci_pc';
async function fetchURL(pabbliURL) {
let response = await fetch(pabbliURL);
if (response.status === 200) {
let new_url = await response.text();
// location.href = new_url;
console.log(new_url);
}
}
fetchURL(pabbliURL);
</script>
How can I get the webhook to work and grab its response?