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
Finally got to test the latest updates, but list_acl_entries is broken. Running identical code to example:
try:
# List ACL entriesapi_response=api_instance.list_acl_entries(service_id, acl_id)
pprint(api_response)
exceptfastly.ApiExceptionase:
print("Exception when calling AclEntryApi->list_acl_entries: %s\n"%e)
And getting the following error:
Invalid inputs given to generate an instance of 'AclEntry'. The input data was invalid for the allOf schema 'AclEntry' in the composed schema 'AclEntryResponse'. Error=Invalid type for variable 'negated'. Required value type is int and passed type was str at ['received_data'][0]['negated']
fastly.exceptions.ApiTypeError: Invalid type for variable 'negated'. Required value type is int and passed type was str at ['received_data'][0]['negated']
The values of service_id and acl_id are valid IDs and type of str, currently using requests workaround:
Present in 5.1.0. Could this be related to the fact that this package is generated from a spec file that doesn't match the API response. Looking at the documentation at https://www.fastly.com/documentation/reference/api/acls/acl-entry/ specifically the list acl entries example response:
"negated": 0,
We see negated is returned as an int but the API itself is returning the int as a string:
Version
4.1.1
What happened
Finally got to test the latest updates, but
list_acl_entries
is broken. Running identical code to example:And getting the following error:
The values of
service_id
andacl_id
are valid IDs and type ofstr
, currently usingrequests
workaround:The text was updated successfully, but these errors were encountered: