Skip to content

[BUG] Client initiation fails due to proxy error #196

@jdozeran

Description

@jdozeran

Trying aoigrapi on a whim to consider replacing instagrapi in a project. Clean Raspberrt Pi5 running kernel 6.12.34+rpt-rpi-2712 with Python 3.11.2. Only imported library is aiograpi (version 0.0.4, I think)

Python 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from aiograpi import Client
>>> cl = Client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jdo/.pb/lib/python3.11/site-packages/aiograpi/__init__.py", line 92, in __init__
    self.set_proxy(proxy)
  File "/home/jdo/.pb/lib/python3.11/site-packages/aiograpi/__init__.py", line 97, in set_proxy
    self.public.proxies = self.private.proxies = {}
    ^^^^^^^^^^^^^^^^^^^
  File "/home/jdo/.pb/lib/python3.11/site-packages/aiograpi/reqwests.py", line 96, in proxies
    self._set_client()
  File "/home/jdo/.pb/lib/python3.11/site-packages/aiograpi/reqwests.py", line 99, in _set_client
    self._client = httpx.AsyncClient(
                   ^^^^^^^^^^^^^^^^^^
TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies'

To Reproduce
Provide a piece of code to reproduce the problem.

Traceback
Show your full traceback so that it is clear where exactly the error occurred.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Ubuntu 21.04]
  • Python version [e.g. 3.8.3]
  • aiograpi version [e.g. 1.9.3, not "latest"]
  • moveipy version if used
  • imagemagick version if used

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions