You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
ConfigurationArchive.export_device_configurations fails for version 2.3.7.6 due to error in body format. The SDK reflects changes listed in API docs for the /dna/intent/api/v1/network-device-archive/cleartext endpoint, but the API still expects to get deviceId as a list and not a string like in previous versions.
Test request body(equivalent to o:
{
"deviceId": "xxxxxx-yyyyy-zzzzz",
"password": "Password1!"
}
Response:
{
"response": {
"errorCode": "BadRequest",
"message": "JSON parse error: Cannot construct instance of java.util.ArrayList (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of java.util.ArrayList (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz')\n at [Source: (PushbackInputStream); line: 2, column: 17] (through reference chain: com.cisco.apicem.config.archive.request.dto.ExportDeviceConfigWrapperDTO["deviceId"])",
"detail": "JSON parse error: Cannot construct instance of java.util.ArrayList (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of java.util.ArrayList (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz')\n at [Source: (PushbackInputStream); line: 2, column: 17] (through reference chain: com.cisco.apicem.config.archive.request.dto.ExportDeviceConfigWrapperDTO["deviceId"])"
},
"version": "1.0"
}
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Please provide an screenshot of the successful API call with cuRL, Postman, etc.
Environment (please complete the following information):
Cisco DNA Center Version and patch: 2.3.7.6-70319
Python version: 3.12.6
SDK version: 2.7.7
OS Version: MacOS 15.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Prerequisites
Describe the bug
A clear and concise description of what the bug is.
ConfigurationArchive.export_device_configurations fails for version 2.3.7.6 due to error in body format. The SDK reflects changes listed in API docs for the /dna/intent/api/v1/network-device-archive/cleartext endpoint, but the API still expects to get deviceId as a list and not a string like in previous versions.
Test request body(equivalent to o:
{
"deviceId": "xxxxxx-yyyyy-zzzzz",
"password": "Password1!"
}
Response:
{
"response": {
"errorCode": "BadRequest",
"message": "JSON parse error: Cannot construct instance of
java.util.ArrayList
(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance ofjava.util.ArrayList
(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz')\n at [Source: (PushbackInputStream); line: 2, column: 17] (through reference chain: com.cisco.apicem.config.archive.request.dto.ExportDeviceConfigWrapperDTO["deviceId"])","detail": "JSON parse error: Cannot construct instance of
java.util.ArrayList
(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance ofjava.util.ArrayList
(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('xxxxxx-yyyyy-zzzzz')\n at [Source: (PushbackInputStream); line: 2, column: 17] (through reference chain: com.cisco.apicem.config.archive.request.dto.ExportDeviceConfigWrapperDTO["deviceId"])"},
"version": "1.0"
}
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Please provide an screenshot of the successful API call with cuRL, Postman, etc.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: