Open federicoaaguirre opened 2 years ago
same error on python3.7
I had this issue and fixed it by switching my request version. Try pip install requests==2.24.0. I'm using Python 3.9 and Max OS 11.2.1
Same error on W10, Python 3.9/3.10
File "D:\sirpi2\Replex\rate_limiter.venv\lib\site-packages\fastapi\routing.py", line 921, in decorator self.add_api_route( File "D:\sirpi2\Replex\rate_limiter.venv\lib\site-packages\fastapi\routing.py", line 848, in add_api_route current_tags = self.tags.copy() AttributeError: 'str' object has no attribute 'copy'
i'm getting this error because in APIRouter i have pass string
when i pass list is working
Yes correcting this removes the error. thx :)
Describe the bug Error: AttributeError: 'str' object has no attribute 'copy'
To Reproduce Steps to reproduce the behavior:
Screenshots
Desktop (please complete the following information):