DMTF / Redfish-Protocol-Validator

The Redfish Protocol Validator tests the HTTP protocol behavior of a Redfish service to validate that it conforms to the Redfish specification.
Other
14 stars 12 forks source link

Debug log about AttributeError: 'list' object has no attribute 'get' #75

Closed FelixD999 closed 4 months ago

FelixD999 commented 5 months ago

Hi, When I run with version 1.2.3 it gets blocked at AttributeError: 'list' object has no attribute 'get'. protocol_1 2 3_list

I checked the patch_array_save in service_requests.py according to the debug log, but I am not sure whether the root cause is related to this. Could you please help explain?

Thanks, Felix

mraineri commented 5 months ago

It looks like it might be related to the response payload for ManagerNetworkProtocol; I'm suspecting "NTP" is an array in the response, which should be an object. Can you provide the response body for your ManagerNetworkProtocol resource?

FelixD999 commented 5 months ago

Thanks for your explanation and tips. Previously "NTP" did become an array, now we have corrected it back to object and running the validator will not be blocked by this issue.