Apify Discord Mirror

Home
Members
🟢mido🟢
�
🟢mido🟢
Offline, last seen 2 days ago
Joined January 26, 2025
I'm trying to run my actor & it's giving this log:
Plain Text
2025-03-09T00:13:41.538Z ACTOR: Pulling Docker image of build 20IgkKFk3QAzeFbk9 from repository.
2025-03-09T00:13:42.170Z ACTOR: Creating Docker container.
2025-03-09T00:13:42.237Z ACTOR: Starting Docker container.
2025-03-09T00:13:44.148Z Downloading model definition files...
2025-03-09T00:13:44.419Z Error downloading fingerprint-network.zip: [Errno 13] Permission denied: '/usr/local/lib/python3.13/site-packages/browserforge/fingerprints/data/fingerprint-network.zip'
2025-03-09T00:13:44.430Z Downloading model definition files...
2025-03-09T00:13:44.452Z Error downloading input-network.zip: [Errno 13] Permission denied: '/usr/local/lib/python3.13/site-packages/browserforge/headers/data/input-network.zip'
...
2025-03-09T00:13:44.580Z   File "/usr/local/lib/python3.13/site-packages/browserforge/bayesian_network.py", line 288, in extract_json
2025-03-09T00:13:44.582Z     with zipfile.ZipFile(path, 'r') as zf:
2025-03-09T00:13:44.583Z          ~~~~~~~~~~~~~~~^^^^^^^^^^^
2025-03-09T00:13:44.586Z   File "/usr/local/lib/python3.13/zipfile/__init__.py", line 1367, in __init__
2025-03-09T00:13:44.588Z     self.fp = io.open(file, filemode)
2025-03-09T00:13:44.590Z               ~~~~~~~^^^^^^^^^^^^^^^^
2025-03-09T00:13:44.592Z FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.13/site-packages/browserforge/headers/data/input-network.zip'
8 comments
A
�
a
I want to test the apify proxy and how it works to integrate it with my py code.
Running a very simple check I found it's not working with https urls. here's a snippet:
Plain Text
import asyncio, httpx
from apify import Actor
import dotenv

async def main():
    async with Actor:
        proxy_configuration = await Actor.create_proxy_configuration(
            password=dotenv.get_key('.env', 'APIFY_PROXY_PASSWORD'),
        )
        proxy_url = await proxy_configuration.new_url()
        proxies = {
            'http': proxy_url,
            'https': proxy_url,
        }
        async with httpx.AsyncClient(proxy=proxy_url) as client:
            for _ in range(3):
                response = await client.get('https://httpbin.org/ip')
                if response.status_code == 200:
                    print(response.json())
                elif response:
                    print(response.text)

if __name__ == '__main__':
    asyncio.run(main())

giveing me a proxy error:
Plain Text
          raise mapped_exc(message) from exc
      httpx.ReadTimeout
[apify] INFO  Exiting Actor ({"exit_code": 91})

If i just only change the protocol to http://httpbin.org/ip it works.
Apify proxy should support https as stated on the site. Thanks in advance.
3 comments
R
�