saurabh18cs
Honored Contributor III

Hi @bek04  can you please try once with direct ip address bypassing DNS, this will explain if egress is the issue or DNS. like : urllib.request.urlopen("https://142.250.74.206/robots.txt", timeout=20).read()[:100] ??

and 

nslookup www.google.com

and 

import socket
socket.getaddrinfo("www.google.com", 443)

Is you NCC VPC setup or workspace VPC either using custom DNS ? like enterprise level dns whether on-prem or custom dns then maybe good to check if  those servers forward public queries? becasue i believe workspace level policies like custom dns may influence how serverless works.