Hello everyone,
I am new to n8n and learning so please bear with me.
I am trying to send a http REPORT request via the http node to a caldav api
{
"parameters": {
"method": "REPORT",
"url": "https://mynextcloud/remote.php/dav/calendars/user/calendar/",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "mycreds",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "depth",
"value": "1"
},
{
"name": "prefer",
"value": "return-minimal"
}
]
},
"sendBody": true,
"contentType": "raw",
"rawContentType": "application/xml",
"body": "<c:calendar-query xmlns:d=\"DAV:\" xmlns:c=\"urn:ietf:params:xml:ns:caldav\"><d:prop><c:calendar-data /></d:prop><c:filter><c:comp-filter name=\"VCALENDAR\"><c:comp-filter name=\"VTODO\"></c:comp-filter></c:comp-filter></c:filter></c:calendar-query>",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.3,
"position": [
208,
48
],
"id": "21225a26-fc58-4242-85f6-a1754c4fee9a",
"name": "HTTP Request1",
"alwaysOutputData": false,
"credentials": {
"mycreds": {
"id": "id",
"name": "name"
},
}
}
, but I always get this error:
The service was not able to process your request
Sabre\Xml\ParseException The input element to parse is empty. Do not attempt to parse
The strange thing is the same request works in bruno and probably other api testing software. I’ve tried importing into n8n from curl command, changing from OAuth2 to basic auth and adding and removing a bunch of headers, but nothing has worked so far.
So if someone has an idea whats wrong, please share with me.