DedInc / pyanty

Python module for controlling Dolphin browser profiles using Selenium, Pyppeteer, and Playwright. Includes Dolphin API for profile management.
https://pypi.org/project/pyanty
MIT License
45 stars 14 forks source link

Title: KeyError: 'automation' after latest Dolphin Anty update #25

Open BrunoNRS opened 2 months ago

BrunoNRS commented 2 months ago

After updating to the latest version of Dolphin Anty, I encountered a KeyError: 'automation' when using pyanty to create profiles with a proxy. This error was not present before the update. Below is the traceback for the error:

Error Traceback:

Traceback (most recent call last):
  File "D:\Software\Projects\dolphin_project\main.py", line 24, in <module>
    main()
  File "D:\Software\Projects\dolphin_project\main.py", line 14, in main
    profile_id, port = create_profile_with_proxy(profile_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Software\Projects\dolphin_project\profile_manager.py", line 44, in create_profile_with_proxy
    port = profile_response['automation']['port']
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'automation'

This error started occurring immediately after updating to the latest Dolphin Anty version. The same code was working correctly before the update.