URLs not accessible in Microsoft Copilot sandbox when executing code
12:43 30 Jul 2026

I have a python script for testing:

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 in Copilot, it executes the code in a sandbox and gives me this error:

enter image description here
It's really obnoxious and doesn't work with any URL so far.

microsoft-copilot