
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2021 05:28 AM
Hi Everyone
I am trying to Create an Internal User with cURL and JSON on window command prompt for cisco ISE. prompt but I am getting these errors over again . can anyone help me out
this is curl command
curl --insecure --include --user ers-admin:Admin22@# --header "Content-Type:application/json" --header "Accept: application/json" https://192.168.31.16:9060/ers/config/internaluser --data @internaluser.json}'
this is my error
HTTP/1.1 400
Set-Cookie: JSESSIONIDSSO=21F0E7399C2908B8E3D6F47578D0E82E; Path=/; Secure; HttpOnly
Set-Cookie: APPSESSIONID=1E9ED3FFD9C8A99774BE5DCF72638F2E; Path=/ers; Secure; HttpOnly
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;
X-WebKit-CSP: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;
X-XSS-Protection: 1; mode=block
Date: Mon, 17 May 2021 12:06:44 GMT
Content-Type: application/json;charset=utf-8
Transfer-Encoding: chunked
Connection: close
Server:
{
"ERSResponse" : {
"operation" : "POST-create-internaluser",
"messages" : [ {
"title" : "Invalid JSON Input: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.StringReader@15fa68a; line: 1, column: 0])\n at [Source: java.io.StringReader@15fa68a; line: 1, column: 237]",
"type" : "ERROR",
"code" : "Application resource validation exception"
} ],
"link" : {
"rel" : "related",
"href" : "https://192.168.30.13:9060/ers/config/internaluser",
"type" : "application/xml"
}
}
}
this the content of json test file
{
"InternalUser" : {
"name" : "Kwame",
"password" : "C1sco1234",
"changePassword" : false
}
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2021 10:19 PM
Your JSON is missing a closing brace. Try using this content:
{
"InternalUser": {
"name": "Kwame",
"password": "C1sco1234}",
"changePassword": false
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2021 10:19 PM
Your JSON is missing a closing brace. Try using this content:
{
"InternalUser": {
"name": "Kwame",
"password": "C1sco1234}",
"changePassword": false
}
}
