Skip to content

Attribute Error when using internal post method "combined_args.update(args[1].items()) AttributeError: 'list' object has no attribute 'items'" #1544

@OzyOzk

Description

@OzyOzk

Python: 3.8,
Eve: 1.1.5,
Flask: 1.1.4
Cerberus 1.3.7

Hi all, getting the following attribute error when using the internal post method. Records is a list of dicts

File "/home/ubuntu/projects/bus-uat/bus-api/busmethodology/api/views/upload.py", line 238, in occupant_responses_excel
post('occupant_responses', records)
File "/home/ubuntu/projects/bus-uat/bus-api/busmethodology/api/internal/common.py", line 325, in rate_limited
return f(*args, **kwargs)
File "/home/ubuntu/projects/bus-uat/bus-api/venv/lib/python3.8/site-packages/eve/auth.py", line 80, in decorated
return f(*args, **kwargs)
File "/home/ubuntu/projects/bus-uat/bus-api/busmethodology/api/internal/common.py", line 1357, in decorated
combined_args.update(args[1].items())
AttributeError: 'list' object has no attribute 'items'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions