Webhook: 404 error

Here’s AI generated script:

const fibery = context.getService('fibery');
const http = context.getService('http');

// Prepare payload with current entities' Id, Name and type
const payload = args.currentEntities.map(e => ({
    Id: e.Id,
    Name: e.Name,
    type: e.type
}));

await http.postAsync('https://apps.www/webhook/www-5dc2-460a-8f05-259a7b14ab8d/webhook', {
    body: payload,
    headers: { 'Content-Type': 'application/json' }
});

return `Webhook invoked for ${payload.length} entity(ies)`;

Webhook in n8n exists and is listening. But Fibery generates 404 error. Why?

I’m not experienced with n8n webhooks, but the error makes it look like the URL is not correct.
Have you succeeded with sending a webhook using something other than Fibery?

The url is correct. It works when I don’t use scripts, like just listening for the change in the field. However, changes in the richtext aren’t firing the webhook, therefore I decided to use a button+script.

Have you tried sending a webhook using something like reqbin?

This time it was a glitch on my side. Thanks for your help.