Skip to content

Proxy does not work – Device always reports "No Internet Connection" #332

Description

@bineshco2024

Proxy does not work – Device always reports "No Internet Connection"

Hi,

I'm trying to connect to a worker using a proxy, but the device always reports "No Internet Connection" whenever a proxy is configured.

I have verified that my proxies are working correctly. I tested them separately in both HTTP and SOCKS5 formats, and they work as expected outside of Damru.

The issue only occurs when a proxy is used:

  • ✅ Without a proxy, the device has internet access and works normally.
  • ❌ With a proxy configured, the device always reports "No Internet Connection".

I also tried configuring the proxy through the UI and performing a search manually, but I still received the same "No Internet Connection" error.

This is the code I'm using:

async def search_worker(serial: str, proxies: list[str]):
    for proxy in proxies:
        print(f"[{serial}] trying proxy: {proxy}")

        try:
            async with AsyncDamru(
                serial=serial,
                proxy=proxy,
                webrtc_block=True,
                debug=True,
                device="xiaomi_redmi_9a"
            ) as context:
                page = await context.new_page()

                await page.goto(
                    URL,
                    wait_until="domcontentloaded",
                    timeout=90000,
                )

                print("URL:", page.url)

                await page.screenshot(
                    path=f"screenshot-{serial.replace(':', '_')}.png",
                    full_page=True,
                )

                await page.wait_for_timeout(10000)

                print(f"[{serial}] success with proxy: {proxy}")
                return

        except DamruError as e:
            print(f"[{serial}] Damru failed with proxy {proxy}: {e}")

        except Exception as e:
            print(f"[{serial}] browser failed with proxy {proxy}: {e}")

    print(f"[{serial}] all proxies were tested but none worked")

Is there any known limitation regarding proxy support, or is there any additional configuration required for proxies to work on the device?

I will also attach screenshots of the UI showing the proxy configuration and the resulting "No Internet Connection" error, in case they help with troubleshooting and reproducing the issue.

Thanks.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions