Everything_is_bad, Task exception was never retrieved
future: exception=UnicodeEncodeError('ascii', '10619:AAUIF5LlNjCPqTBVZYqZDI6j2tjB5mGcmFoз', 41, 42, 'ordinal not in range(128)')>
Traceback (most recent call last):
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 415, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 235, in process_updates
return await asyncio.gather(*tasks)
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 256, in process_update
return await self.message_handlers.notify(update.message)
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "d:\programirovanie\filespy\pay.py", line 51, in create_invoice_command
invoice = await create_invoice(user_id, amount, currency, description)
File "d:\programirovanie\filespy\pay.py", line 38, in create_invoice
response = await client.post(API_URL + 'createInvoice', headers=headers, json=payload)
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1877, in post
return await self.request(
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1546, in request
request = self.build_request(
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 348, in build_request
headers = self._merge_headers(headers)
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 415, in _merge_headers
merged_headers.update(headers)
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_models.py", line 199, in update
headers = Headers(headers)
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_models.py", line 70, in __init__
self._list = [
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_models.py", line 74, in
normalize_header_value(v, encoding),
File "C:\Users\clazy\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_utils.py", line 53, in normalize_header_value
return value.encode(encoding or "ascii")
UnicodeEncodeError: 'ascii' codec can't encode character '\u0437' in position 41: ordinal not in range(128)