Forum Discussion

YeetusDeletus's avatar
YeetusDeletus
Occasional Reader
Jul 30, 2026

URLs not accessible when running python script in sandbox

I have a script:

import requests

try:
    r = requests.get("https://google.com", timeout=10)
    print("Status:", r.status_code)
    print("Headers:", dict(r.headers))
    print("Body:", r.text[:300])
except Exception as e:
    print(repr(e))

When I run it with an agent, it gives me this error:

I have no idea how to make the URL valid for the conversation and it doesn't work with any URL I have provided so far.

No RepliesBe the first to reply