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 #1

Updated by Florian Heigl about 10 years ago

  • Description updated (diff)

sorry, error message with proper formatting:

@
curl -H "X-API-Token: XXXX" -X PUT -k https://localhost/rudder/api/latest/groups -d "displayName=aaaademo2" -d "dynamic=false" -d "nodeGroupCategory=9ab2f05c-8191-4da5-853f-8dcc19d2b5da" {"action": "createGroup","id": "6228ceba-2365-4eee-a095-a695750d64a8","result": "error","errorDetails": "Could not create Group aaaademo2 (id:6228ceba-2365-4eee-a095-a695750d64a8) cause is: Reason field is mandatory and should be at least 5 characters long."}
@

Actions #2

Updated by Florian Heigl about 10 years ago

  • Description updated (diff)

omg. just figured this is probably a change request issue...

:/nfs/cms/laborshare/bin/beta # curl -H "X-API-Token: XXX" -X PUT -k https://localhost/rudder/api/latest/groups -d "displayName=aaaademo2" -d "dynamic=false" -d "nodeGroupCategory=9ab2f05c-8191-4da5-853f-8dcc19d2b5da" -d "reason=ultima ratio regum" {"action": "createGroup","id": "76116da6-8ce9-4367-a0fc-c940a97e8d40","result": "success","data": {"groups": [{"id": "76116da6-8ce9-4367-a0fc-c940a97e8d40","displayName": "aaaademo2","description": "","nodeIds": [],"isDynamic": false,"isEnabled": false}]}}

this isn't in the API section / query for adding groups, but in the general section. at least now I understood, so, hopefully nevermind :)

This can be closed :)

Actions #3

Updated by Benoît PECCATTE over 9 years ago

  • Category set to API
  • Status changed from New to Rejected
  • Target version set to 2.11.11

OK, let's close it :)

Actions

Also available in: Atom PDF