-
Notifications
You must be signed in to change notification settings - Fork 52.9k
Closed
Closed
Copy link
Labels
Releasedin linearIssue or PR has been created in Linear for internal reviewIssue or PR has been created in Linear for internal review
Description
Bug Description
While exploring how getNodeWebhookPath works, I noticed that it might not handle cases well when webhookId or path is undefined.
This could lead to unexpected webhook paths being generated, which might cause errors or strange behavior when handling webhooks.
To Reproduce
- Call getNodeWebhookPath without passing a webhookId or path, or pass undefined.
- Check the resulting webhookPath.
- See if the function breaks or returns something that doesn’t make sense.
Expected behavior
It would be better if the function could handle missing values more gracefully: maybe by throwing a clear error, returning a default, or avoiding bad webhook construction altogether.
Operating System
macOS Sonoma
n8n Version
1.90.2
Node.js Version
v20.18.0
Database
SQLite (default)
Execution mode
main (default)
Metadata
Metadata
Assignees
Labels
Releasedin linearIssue or PR has been created in Linear for internal reviewIssue or PR has been created in Linear for internal review