Project

General

Profile

Actions

Bug #26045

closed

"Unexpected: Unexpected end of input" as an API response when there is no JSON data

Added by Nicolas CHARLES 13 days ago. Updated 10 days ago.

Status:
Rejected
Priority:
To review
Assignee:
-
Category:
Relay server or API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Yes

Description

since 8.2, the following query will fail

curl --location --request DELETE -k 'https://localhost/rudder/api/18/nodes/834f4c05-2e44-451d-905e-439ac2ad594b?mode=erase' --header 'Accept: application/json' --header 'Content-Type: application/json'   --header 'X-API-TOKEN: TOKEN'
{"action":"deleteNode","result":"error","errorDetails":"Error when deleting Nodes; cause was: Unexpected: Unexpected end of input"}

removing

--header 'Content-Type: application/json' 
solves the issue

This used to work in Ruder 8.1

Actions

Also available in: Atom PDF