Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OzyOzk opened this issue Jan 24, 2025 · 0 comments

Comments

@OzyOzk
Copy link

OzyOzk commented Jan 24, 2025

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant