Hi @MutedJam,
we are using this service API: dataforseo.com. Since before the n8n version update everything works fine, I am quite sure that the issue concerns the reception of data by the n8n and not the sending.
I am also quite sure there is something related to content-type and content-encoding parameters.
The API send to webhook a JSON compressed by GZIP, so the content-type of the webhook is “application/json” and the content-encoding is “gzip” (which is different from your example).
I found the way to reproduce the error, test 1 and test 3 reproduce exactly the way the API send the data (and the same error or success)
TEST 1 : N8N V1.1.1
On my mac terminal I execute this command:
echo '{"key": "value"}' | gzip | curl -X POST -H "Content-Type: application/json" -H "Content-Encoding: gzip" --data-binary @- https://mydomain.com/webhook-test/58976b87-4b24-481a-81cb-0f2f5bf01f6c
The workflow started and I can get the value {“key”: “value”} from the node
TEST 2 : N8N V1.1.1
echo '{"key": "value"}' | gzip | curl -X POST -H "Content-Type: application/gzip" -H "Content-Encoding: gzip" --data-binary @- https://mydomain.com/webhook-test/58976b87-4b24-481a-81cb-0f2f5bf01f6c
The workflow started, but I cannot get the value {“key”: “value”} from the node. The node return only empty parameters.
TEST 3 : N8N V1.7.1
echo '{"key": "value"}' | gzip | curl -X POST -H "Content-Type: application/json" -H "Content-Encoding: gzip" --data-binary @- https://mydomain.com/webhook-test/58976b87-4b24-481a-81cb-0f2f5bf01f6c
The workflow does not start, the terminal respond with this error {"code":422,"message":"Failed to parse request body","hint":"Unexpected token \u001f in JSON at position 0"}**%**
TEST 4 : N8N V1.7.1
echo '{"key": "value"}' | gzip | curl -X POST -H "Content-Type: application/gzip" -H "Content-Encoding: gzip" --data-binary @- https://mydomain.com/webhook-test/58976b87-4b24-481a-81cb-0f2f5bf01f6c
The workflow started, but I cannot get the value {“key”: “value”} from the node. The node return only empty parameters.