[英]arguments error while calling an AWS Glue Pythonshell job from boto3
[英]Connection Error while calling external api from AWS Glue
我正在尝试从 aws 胶水脚本访问外部 api。
import requests
r = requests.get("https://api.github.com/users/hadley/orgs")
我收到一个连接错误,说明,
ConnectionError: HTTPSConnectionPool(host='api.github.com/users/hadley/orgs', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb8ff471400>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
任何人都可以帮忙吗? 提前致谢!
不确定是否已经回答了这个问题,但如果有,请转到“编辑作业”并删除所需的连接。 当您有所需的连接时,它会将您保留在您的 VPC 内,不允许外部连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.