REST call fails with error of Invalid JSON input
Applies to
- ONTAP 9.13.1P6
- REST
Issue
Performing a CURL from windows results in an "Unexpected character in stream" error
Example:
curl.exe -X PATCH https://cluster-mgmt/api/storage/luns/UUID -H 'Accept: application/hal+json' -d '{ "clone": { "source": { "name": "/vol/volumeA/volumeA_LUNA" } } }' --user admin
{
"error": {
"message": "Invalid JSON input. Unexpected character in stream: c around 0:2.",
"code": "262199"
}
}