[GH-ISSUE #98] Webhook missing response data (Docker Unstable) #5964

Closed
opened 2026-04-20 16:25:30 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @CyberTechArmor on GitHub (Dec 2, 2023).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/98

Description

Environment: Docker
Frontend tag: unstable
API tag: unstable
Addition consideration: n8n and the Vikunja n8n community node

I updated to the unstable version to add the webhook functionality. I'm using n8n to test and connect the api integration. I was successfully able to create a webhook and trigger it.

Issue: the response data is empty, both params and query. I'm assuming that the triggered even should pass along some information, even if it's only the id of the event. The specific trigger: task.comment.created.

I attached the n8n response output image for reference. I did not see any other information from either the website or api docs (on the main website or my instance) other than creating/updating, meaning I did not find what the expected response output of a webhook should be (why I added to issues).

*Side note: Vikunja is an awesome project. It's incredibly fast, simple in design but extensive in its capabilities, consistent development and even integrations (like n8n). Just wanted express my appreciation, thank you for the hard work and dedication.

Vikunja Frontend Version

unstable

Vikunja API Version

unstable

Browser and version

Chrome Version 119.0.6045.200 (Official Build) (64-bit)

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

image

Originally created by @CyberTechArmor on GitHub (Dec 2, 2023). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/98 ### Description Environment: Docker Frontend tag: unstable API tag: unstable Addition consideration: n8n and the Vikunja n8n community node I updated to the unstable version to add the webhook functionality. I'm using n8n to test and connect the api integration. I was successfully able to create a webhook and trigger it. Issue: the response data is empty, both params and query. I'm assuming that the triggered even should pass along some information, even if it's only the id of the event. The specific trigger: task.comment.created. I attached the n8n response output image for reference. I did not see any other information from either the website or api docs (on the main website or my instance) other than creating/updating, meaning I did not find what the expected response output of a webhook should be (why I added to issues). *Side note: Vikunja is an awesome project. It's incredibly fast, simple in design but extensive in its capabilities, consistent development and even integrations (like n8n). Just wanted express my appreciation, thank you for the hard work and dedication. ### Vikunja Frontend Version unstable ### Vikunja API Version unstable ### Browser and version Chrome Version 119.0.6045.200 (Official Build) (64-bit) ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots ![image](https://github.com/go-vikunja/api/assets/63061216/7df9bb9f-74cb-45a5-8491-26a160aa5d59)
Author
Owner

@kolaente commented on GitHub (Dec 3, 2023):

Can you verify if this is a problem of n8n or the Webhook itself? (Adding a webhook for a webhook test provider should do the trick)

<!-- gh-comment-id:1837526180 --> @kolaente commented on GitHub (Dec 3, 2023): Can you verify if this is a problem of n8n or the Webhook itself? (Adding a webhook for a webhook test provider should do the trick)
Author
Owner

@CyberTechArmor commented on GitHub (Dec 3, 2023):

I just checked using this webhook testing site: https://console.hookdeck.com/

I did get response data:
image

I will check other n8n webhook options to see if I can pull in that data. If I'm able to identify it, I'll report back with the specific settings.

<!-- gh-comment-id:1837538883 --> @CyberTechArmor commented on GitHub (Dec 3, 2023): I just checked using this webhook testing site: https://console.hookdeck.com/ I did get response data: ![image](https://github.com/go-vikunja/api/assets/63061216/637ac947-ddc1-419b-b0d0-a4f9d16cf52d) I will check other n8n webhook options to see if I can pull in that data. If I'm able to identify it, I'll report back with the specific settings.
Author
Owner

@CyberTechArmor commented on GitHub (Dec 3, 2023):

All set, working as intended.

Just have to add the "raw" response body setting:
image

Then have to set convert the binary to json:
image
image

I appreciate the quick response. I'm closing the issue. Thanks again

<!-- gh-comment-id:1837541457 --> @CyberTechArmor commented on GitHub (Dec 3, 2023): All set, working as intended. Just have to add the "raw" response body setting: ![image](https://github.com/go-vikunja/api/assets/63061216/ec47d340-d880-4c1e-b900-79f2ee57b402) Then have to set convert the binary to json: ![image](https://github.com/go-vikunja/api/assets/63061216/6a6e55e7-9636-4711-be31-d6d3379ef9c4) ![image](https://github.com/go-vikunja/api/assets/63061216/1b7bbcd9-6c3c-4bc2-b728-bf352560ea76) I appreciate the quick response. I'm closing the issue. Thanks again
Author
Owner

@kolaente commented on GitHub (Dec 3, 2023):

I wonder if that might still be a problem of Vikunja? Maybe we're missing a json header or something like that. Do you have the same problem with the Vikunja n8n webhook trigger?

<!-- gh-comment-id:1837542791 --> @kolaente commented on GitHub (Dec 3, 2023): I wonder if that might still be a problem of Vikunja? Maybe we're missing a json header or something like that. Do you have the same problem with the Vikunja n8n webhook trigger?
Author
Owner

@CyberTechArmor commented on GitHub (Dec 3, 2023):

Yeah, it's immediately being triggered and acknowledges the event, but there is no corresponding data. My guess would be that it's the same issue:

image
image

<!-- gh-comment-id:1837544854 --> @CyberTechArmor commented on GitHub (Dec 3, 2023): Yeah, it's immediately being triggered and acknowledges the event, but there is no corresponding data. My guess would be that it's the same issue: ![image](https://github.com/go-vikunja/api/assets/63061216/ae34544b-61e1-4c0b-b77a-bae5a144cb2d) ![image](https://github.com/go-vikunja/api/assets/63061216/311989be-b710-42eb-bddc-96ac3838e1b6)
Author
Owner

@kolaente commented on GitHub (Dec 6, 2023):

It looks like the json header was missing. I've added it in 57bd5aca80 - can you check with the next unstable build if the n8n node works as expected?

<!-- gh-comment-id:1842849816 --> @kolaente commented on GitHub (Dec 6, 2023): It looks like the json header was missing. I've added it in 57bd5aca804b99ef6dcca9178b0f70d3c354ffdc - can you check with the next unstable build if the n8n node works as expected?
Author
Owner

@CyberTechArmor commented on GitHub (Dec 6, 2023):

Looks like that resolved the issue:

image

Thank you for the update.

<!-- gh-comment-id:1842946393 --> @CyberTechArmor commented on GitHub (Dec 6, 2023): Looks like that resolved the issue: ![image](https://github.com/go-vikunja/api/assets/63061216/359305d6-b79f-4e63-bad7-96e3fe49a5fa) Thank you for the update.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5964