Project

General

Profile

Actions

Bug #5526

closed

API incomplete error message

Added by Florian Heigl about 10 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

curl -H "X-API-Token: XXXXX" -X PUT -k https://localhost/rudder/api/latest/groups -d "nodeGroupCategory=9ab2f05c-8191-4da5-853f-8dcc19d2b5da" -d "displayName=demo2" -d "dynamic=false" {"action": "createGroup","id": "ac0289d7-87a1-4a0f-b3fb-386712fb7ae0","result": "error","errorDetails": "Could not create Group demo2 (id:ac0289d7-87a1-4a0f-b3fb-386712fb7ae0) cause is: Reason field is mandatory and should be at least 5 characters long."

this message should state what field is missing.
I have no idea whats wrong there like this, could be anything.

I can apparently run the same thing in home lab.. so adding version info, not sure if this is where the problem lies...

rudder-server-root-2.11.1.release-1.SLES.11
rudder-techniques-2.11.2.release-1.SLES.11
rudder-jetty-2.11.1.release-1.SLES.11
rudder-inventory-ldap-2.11.1.release-1.SLES.11
rudder-agent-2.11.1.release-1.SLES.11
rudder-inventory-endpoint-2.11.1.release-1.SLES.11
rudder-reports-2.11.1.release-1.SLES.11
rudder-webapp-2.11.1.release-1.SLES.11

real lab:

rudder-inventory-endpoint-2.11.2.release-1.SLES.11
rudder-jetty-2.11.2.release-1.SLES.11
rudder-agent-2.11.2.release-1.SLES.11
rudder-techniques-2.11.2.release-1.SLES.11
rudder-reports-2.11.2.release-1.SLES.11
rudder-webapp-2.11.2.release-1.SLES.11
rudder-inventory-ldap-2.11.2.release-1.SLES.11
rudder-server-root-2.11.2.release-1.SLES.11

Actions

Also available in: Atom PDF