Reputation: 1
import requests
from bs4 import BeautifulSoup
url = f'https://gg.deals/games/?page=1'
response = requests.get(url, timeout=30)
Execution is not possible in an AWS Lambda environment where VPC configuration is not set up. Even after taking measures such as 'verify=False', 'timeout', and 'headers', the issue persists. I have also tried using HTTPAdapter and retry, but the same error keeps occurring. How can I resolve this?
equests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='gg.deals', port=443): Max retries exceeded with url: /games/?page=1 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8bd08d39a0>, 'Connection to gg.deals timed out. (connect timeout=30)'))
Upvotes: 0
Views: 865