samanthasgroup / samanthas-telegram-bot

Telegram bots for Samantha's Group
GNU General Public License v3.0
1 stars 1 forks source link

[NOT REPRODUCIBLE] asyncio error when creating personal data record #58

Open lemontree210 opened 1 year ago

lemontree210 commented 1 year ago
Traceback (most recent call last):
  ipaddress.py", line 54, in ip_address
    raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address')
ValueError: 'admin.samanthasgroup.com' does not appear to be an IPv4 or IPv6 address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
httpcore.ConnectTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  base_api_client.py", line 166, in _make_request_with_retries
    response = await cls._make_one_request(
  base_api_client.py", line 222, in _make_one_request
    response = await client.post(
  contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
httpx.ConnectTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  backend_client.py", line 222, in _create_personal_info_get_id
    _, data = await cls.post(
  base_api_client.py", line 85, in post
    return await cls._make_request_and_get_data(
  base_api_client.py", line 110, in _make_request_and_get_data
    response = await cls._make_request_with_retries(
  base_api_client.py", line 178, in _make_request_with_retries
    raise BaseApiClientError(
samanthas_telegram_bot.api_clients.base.exceptions.BaseApiClientError: Failed to send POST request to url='https://admin.samanthasgroup.com/api/personal_info/'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  student.py", line 400, in create_high_level_student
    person_was_created = await BackendClient.create_student(update, context)
  backend_client.py", line 71, in create_student
    personal_info_id = await cls._create_person(update, context)
  backend_client.py", line 177, in _create_person
    personal_info_id = await cls._create_personal_info_get_id(update, context)
  backend_client.py", line 234, in _create_personal_info_get_id
    raise BackendClientError(f"Failed to create {common_message_part}") from err
samanthas_telegram_bot.api_clients.backend.exceptions.BackendClientError: Failed to create personal data record for 
lemontree210 commented 1 year ago

As of August 11, this problem never occurred again.