Webhook - Binary Data to Json

Hi everyone!
I’m new to N8N and I’m facing some difficulties. If you can help, I would be very grateful.

I’m trying to create the following scenario:

When a ticket is opened or modified in GLPI, I need some information from that ticket to be inserted into pages of a Notion database or changed if they already exist. In other words, I have a database in Notion with information such as: Title, Requester, Status (New, In progress), Responsible Technician, etc.

As soon as a new ticket is opened in GLPI, some information from the ticket, such as those I mentioned, should be registered as a page (one row) in my Notion database. Similarly, when a ticket is changed, this information should also be updated in this Notion database.

I intend to do this via Webhook.

In GLPI, I have already registered two Webhooks: one for “New” and another for “Update”.

Webhook tests are working on N8N, but the data arrives in binary format.

Is it possible to change how this data arrives (to JSON), or do I need to process it later with another action?

Hello @leandrofelix welcome to :n8n: community!

What you are seeing here is supposed to be what “GLPI” is sending,

Could you check which Content-Type GLPI is using in the Post request payload?
Are you able to control or change that format in “GLPI”?

I forgot to mention that as soon as N8N receives the data from GLPI, it is in binary format.

This is the webhook setup in GLPI

What’s in Custom Headers?

@leandrofelix Can you try add:

Content-Type: application/json
1 Like

You are the best man!

Thank you so much!

1 Like

You’re welcome @leandrofelix.
If you want to mark the post as the solution, it would be nice, it may help others who have the same issue.