Nekmo/proxy-db

sqlalchemy.exc.InvalidRequestError: Entity ProviderRequest has no property 'country'

Closed this issue · 0 comments

Nekmo commented

Error filtering by country:

Traceback (most recent call last):
  File "/home/nekmo/Workspace/proxy-db/_test.py", line 18, in <module>
    proxy = next(proxies_list)
  File "/home/nekmo/Workspace/proxy-db/proxy_db/proxies.py", line 73, in __next__
    return self.try_get_proxy()
  File "/home/nekmo/Workspace/proxy-db/proxy_db/proxies.py", line 61, in try_get_proxy
    proxy = self.find_db_proxy()
  File "/home/nekmo/Workspace/proxy-db/proxy_db/proxies.py", line 39, in find_db_proxy
    query = query.filter_by(country=country)
  File "/home/nekmo/.virtualenvs/proxy-db/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 1689, in filter_by
    for key, value in kwargs.items()]
  File "/home/nekmo/.virtualenvs/proxy-db/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 1689, in <listcomp>
    for key, value in kwargs.items()]
  File "/home/nekmo/.virtualenvs/proxy-db/lib/python3.7/site-packages/sqlalchemy/orm/base.py", line 383, in _entity_descriptor
    (description, key)
sqlalchemy.exc.InvalidRequestError: Entity '<class 'proxy_db.models.ProviderRequest'>' has no property 'country'