2026-04-28 · Калинка Групп · crm_leads — Traceback (most recent call last):
Traceback (most recent call last):
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/Калинка Групп/sync_crm_leads_kalinka.py", line 421, in <module>
main()
~~~~^^
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/Калинка Групп/sync_crm_leads_kalinka.py", line 275, in main
sh = gc.open_by_key(SHEET_ID)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/client.py", line 174, in open_by_key
raise ex
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/client.py", line 168, in open_by_key
spreadsheet = Spreadsheet(self.http_client, {"id": key})
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/spreadsheet.py", line 29, in __init__
metadata = self.fetch_sheet_metadata()
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/spreadsheet.py", line 230, in fetch_sheet_metadata
return self.client.fetch_sheet_metadata(self.id, params=params)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/http_client.py", line 305, in fetch_sheet_metadata
r = self.request("get", url, params=params)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/http_client.py", line 128, in request
raise APIError(response)
gspread.exceptions.APIError: APIError: [500]: Internal error encountered.
2026-04-28 · Калинка Групп · vk_from_sheets — 2026-04-28 11:09:19,853 INFO Загрузка VK из Sheets: 2026-03-01 – 2026-03-31
2026-04-28 11:09:19,853 INFO Загрузка VK из Sheets: 2026-03-01 – 2026-03-31
Traceback (most recent call last):
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/Калинка Групп/sync_vk_from_sheets_kalinka.py", line 200, in <module>
main()
~~~~^^
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/Калинка Групп/sync_vk_from_sheets_kalinka.py", line 136, in main
sh = gc.open_by_key(SHEET_ID)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/client.py", line 174, in open_by_key
raise ex
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/client.py", line 168, in open_by_key
spreadsheet = Spreadsheet(self.http_client, {"id": key})
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/spreadsheet.py", line 29, in __init__
metadata = self.fetch_sheet_metadata()
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/spreadsheet.py", line 230, in fetch_sheet_metadata
return self.client.fetch_sheet_metadata(self.id, params=params)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/http_client.py", line 305, in fetch_sheet_metadata
r = self.request("get", url, params=params)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/gspread/http_client.py", line 128, in request
raise APIError(response)
gspread.exceptions.APIError: APIError: [503]: The service is currently unavailable.
2026-04-23 · МДС · vk_daily — ...(truncated)...
on3.13/site-packages/urllib3/connectionpool.py", line 1093, in _validate_conn
conn.connect()
~~~~~~~~~~~~^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/urllib3/connection.py", line 704, in connect
self.sock = sock = self._new_conn()
~~~~~~~~~~~~~~^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/urllib3/connection.py", line 207, in _new_conn
raise ConnectTimeoutError(
...<2 lines>...
) from e
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x1129e7c50>, 'Connection to ads.vk.com timed out. (connect timeout=30)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
method=request.method,
...<9 lines>...
chunked=chunked,
)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='ads.vk.com', port=443): Max retries exceeded with url: /api/v2/banners.json?limit=200&offset=1000&fields=id%2Cname%2Ccampaign_id%2Cad_plan_id (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1129e7c50>, 'Connection to ads.vk.com timed out. (connect timeout=30)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/МДС/sync_vk_daily.py", line 253, in <module>
main()
~~~~^^
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/МДС/sync_vk_daily.py", line 166, in main
banners_raw = get_all("banners.json", {"fields": "id,name,campaign_id,ad_plan_id"})
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/МДС/sync_vk_daily.py", line 87, in get_all
batch = vk_get(path, params).get("items", [])
~~~~~~^^^^^^^^^^^^^^
File "/Users/2themoon/Desktop/CLAUDE/Автоматизации/Аналитика/МДС/sync_vk_daily.py", line 66, in vk_get
r = requests.get(url, headers=headers, params=params, timeout=30)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/adapters.py", line 688, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='ads.vk.com', port=443): Max retries exceeded with url: /api/v2/banners.json?limit=200&offset=1000&fields=id%2Cname%2Ccampaign_id%2Cad_plan_id (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x1129e7c50>, 'Connection to ads.vk.com timed out. (connect timeout=30)'))