-
-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Labels
Description
/usr/local/lib/python3.11/site-packages/camply/providers/going_to_camp/going_to_camp_provider.py │
│ :522 in list_site_availability │
│ │
│ 519 │ │ if equipment_type_id: │
│ 520 │ │ │ search_filter["subEquipmentCategoryId"] = equipment_type_id │
│ 521 │ │ │
│ ❱ 522 │ │ resources, additional_resources = self._find_matching_resources( │
│ 523 │ │ │ campground.recreation_area_id, search_filter │
│ 524 │ │ ) │
│ 525 │
│ │
│ /usr/local/lib/python3.11/site-packages/camply/providers/going_to_camp/going_to_camp_provider.py │
│ :448 in _find_matching_resources │
│ │
│ 445 │ │ return facility, campground_facility │
│ 446 │ │
│ 447 │ def _find_matching_resources(self, rec_area_id: int, search_filter: Dict[str, any]): │
│ ❱ 448 │ │ results = self._api_request(rec_area_id, "MAPDATA", search_filter) │
│ 449 │ │ availability_details = { │
│ 450 │ │ │ search_filter["mapId"]: results["resourceAvailabilities"] │
│ 451 │ │ } │
│ │
│ /usr/local/lib/python3.11/site-packages/camply/providers/going_to_camp/going_to_camp_provider.py │
│ :341 in _api_request │
│ │
│ 338 │ │ │ "User-Agent": UserAgent(browsers=["chrome"]).random, │
│ 339 │ │ │ "Accept-Language": "en-US,en;q=0.9", │
│ 340 │ │ } │
│ ❱ 341 │ │ response = self.session.get(url=url, headers=headers, params=params, timeout=30) │
│ 342 │ │ if response.ok is False: │
│ 343 │ │ │ error_message = f"Receiving bad data from GoingToCamp API: status_code: {res │
│ 344 │ │ │ logger.error(error_message) │
│ │
│ /usr/local/lib/python3.11/site-packages/requests/sessions.py:602 in get │
│ │
│ 599 │ │ """ │
│ 600 │ │ │
│ 601 │ │ kwargs.setdefault("allow_redirects", True) │
│ ❱ 602 │ │ return self.request("GET", url, **kwargs) │
│ 603 │ │
│ 604 │ def options(self, url, **kwargs): │
│ 605 │ │ r"""Sends a OPTIONS request. Returns :class:`Response` object. │
│ │
│ /usr/local/lib/python3.11/site-packages/requests/sessions.py:589 in request │
│ │
│ 586 │ │ │ "allow_redirects": allow_redirects, │
│ 587 │ │ } │
│ 588 │ │ send_kwargs.update(settings) │
│ ❱ 589 │ │ resp = self.send(prep, **send_kwargs) │
│ 590 │ │ │
│ 591 │ │ return resp │
│ 592 │
│ │
│ /usr/local/lib/python3.11/site-packages/requests/sessions.py:703 in send │
│ │
│ 700 │ │ start = preferred_clock() │
│ 701 │ │ │
│ 702 │ │ # Send the request │
│ ❱ 703 │ │ r = adapter.send(request, **kwargs) │
│ 704 │ │ │
│ 705 │ │ # Total elapsed time of the request (approximately) │
│ 706 │ │ elapsed = preferred_clock() - start │
│ │
│ /usr/local/lib/python3.11/site-packages/requests/adapters.py:532 in send │
│ │
│ 529 │ │ │ │ # This branch is for urllib3 versions earlier than v1.22 │
│ 530 │ │ │ │ raise SSLError(e, request=request) │
│ 531 │ │ │ elif isinstance(e, ReadTimeoutError): │
│ ❱ 532 │ │ │ │ raise ReadTimeout(e, request=request) │
│ 533 │ │ │ elif isinstance(e, _InvalidHeader): │
│ 534 │ │ │ │ raise InvalidHeader(e, request=request) │
│ 535 │ │ │ else: │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ReadTimeout: HTTPSConnectionPool(host='camping.bcparks.ca', port=443): Read timed out. (read timeout=30)
Error: while running runtime: exit status 1
2024-07-26 18:22:43,024 [ CAMPLY]: camply, the campsite finder ⛺️
2024-07-26 18:22:43,044 [ INFO]: YAML File Parsed: camply.yml
2024-07-26 18:22:43,045 [ INFO]: Using Camply Provider: "GoingToCamp"
2024-07-26 18:22:43,054 [ INFO]: 12 booking nights selected for search, ranging from 2024-07-26 to 2024-08-31
2024-07-26 18:22:43,054 [ INFO]: Searching for booking nights on Friday and Saturday
2024-07-26 18:22:43,054 [ INFO]: 2 different months selected for search, ranging from 2024-07-26 to 2024-08-31
2024-07-26 18:22:43,078 [ INFO]: Searching for availabilities with 2 consecutive night stays.
2024-07-26 18:22:43,079 [ INFO]: Retrieving Facility Information for Recreation Area ID: `12`.
2024-07-26 18:22:57,008 [ INFO]: 11 Matching Campgrounds Found
2024-07-26 18:22:57,008 [ INFO]: ⛰ BC Parks (#12) - 🏕 Alice Lake Provincial Park (#-2147483647)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Birkenhead Lake Provincial Park (#-2147483640)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Cultus Lake Provincial Park (#-2147483623)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 E. C. Manning Provincial Park (#-2147483618)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Golden Ears Provincial Park (#-2147483606)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Nairn Falls Provincial Park (#-2147483564)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Porpoise Bay Provincial Park (#-2147483551)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Porteau Cove Provincial Park (#-2147483550)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Rolley Lake Provincial Park (#-2147483543)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Sasquatch Provincial Park (#-2147483539)
2024-07-26 18:22:57,009 [ INFO]: ⛰ BC Parks (#12) - 🏕 Silver Lake Provincial Park (#-2147483535)
2024-07-26 18:22:57,010 [ INFO]: Searching for campsites every 5 minutes.
2024-07-26 18:22:57,010 [ INFO]: Notifications active via: <SilentNotifications>, <PushoverNotifications>
2024-07-26 18:23:02,247 [ INFO]: ❌ ❌ ❌ ❌ 0 Reservable Campsites Matching Search Preferences
2024-07-26 18:23:02,263 [ INFO]: No Campsites were found, we'll continue checking
Reactions are currently unavailable