Python 3.12.0b4
log
2024-01-30 18:40:58,731 | DEBUG | asyncio.init:64 | Using selector: EpollSelector
2024-01-30 18:40:58,732 | INFO | emias-polling-bot.startPolling:186 | 286808737 | startPolling()...
2024-01-30 18:40:58,732 | INFO | emias-polling-bot.poll:141 | 286808737 | poll()...
2024-01-30 18:40:58,734 | DEBUG | urllib3.connectionpool._new_conn:1052 | Starting new HTTPS connection (1): emias.info:443
2024-01-30 18:40:58,918 | DEBUG | urllib3.connectionpool._make_request:546 | https://emias.info:443 "POST /api/emc/appointment-eip/v1/?
getDoctorsInfo HTTP/1.1" 200 None
2024-01-30 18:40:58,920 | DEBUG | emias-polling-bot.poll:159 | 286808737 | {'jsonrpc': '2.0', 'id': '11hd739li-FvIzmC0aKHv', 'method':
'getDoctorsInfo', 'params': {'omsNumber': 'xxxxxxxxxxxxxxxx', 'birthDate': '2000-01-01', 'referralId': 'xxxxxxxxxxxx'}}
stdout
root@saltfishy-python3:~/emias-polling-bot/src# python3 ./main.py
Traceback (most recent call last):
File "/root/emias-polling-bot/src/./main.py", line 481, in
start()
File "/root/emias-polling-bot/src/./main.py", line 476, in start
bot.polling(non_stop=True, interval=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.12/site-packages/telebot/init.py", line 1104, in polling
self.__threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout,
File "/usr/local/python3/lib/python3.12/site-packages/telebot/init.py", line 1179, in __threaded_polling
raise e
File "/usr/local/python3/lib/python3.12/site-packages/telebot/init.py", line 1141, in __threaded_polling
self.worker_pool.raise_exceptions()
File "/usr/local/python3/lib/python3.12/site-packages/telebot/util.py", line 149, in raise_exceptions
raise self.exception_info
File "/usr/local/python3/lib/python3.12/site-packages/telebot/util.py", line 92, in run
task(*args, **kwargs)
File "/root/emias-polling-bot/src/./main.py", line 373, in autoAppointmentStep
asyncio.run(startPolling(message.chat.id))
File "/usr/local/python3/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.12/asyncio/base_events.py", line 664, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/root/emias-polling-bot/src/./main.py", line 189, in startPolling
await poll(chatId)
File "/root/emias-polling-bot/src/./main.py", line 161, in poll
medics = data['result']
~~~~^^^^^^^^^^
KeyError: 'result'
please help )
Python 3.12.0b4
log
2024-01-30 18:40:58,731 | DEBUG | asyncio.init:64 | Using selector: EpollSelector
2024-01-30 18:40:58,732 | INFO | emias-polling-bot.startPolling:186 | 286808737 | startPolling()...
2024-01-30 18:40:58,732 | INFO | emias-polling-bot.poll:141 | 286808737 | poll()...
2024-01-30 18:40:58,734 | DEBUG | urllib3.connectionpool._new_conn:1052 | Starting new HTTPS connection (1): emias.info:443
2024-01-30 18:40:58,918 | DEBUG | urllib3.connectionpool._make_request:546 | https://emias.info:443 "POST /api/emc/appointment-eip/v1/?
getDoctorsInfo HTTP/1.1" 200 None
2024-01-30 18:40:58,920 | DEBUG | emias-polling-bot.poll:159 | 286808737 | {'jsonrpc': '2.0', 'id': '11hd739li-FvIzmC0aKHv', 'method':
'getDoctorsInfo', 'params': {'omsNumber': 'xxxxxxxxxxxxxxxx', 'birthDate': '2000-01-01', 'referralId': 'xxxxxxxxxxxx'}}
stdout
root@saltfishy-python3:~/emias-polling-bot/src# python3 ./main.py
Traceback (most recent call last):
File "/root/emias-polling-bot/src/./main.py", line 481, in
start()
File "/root/emias-polling-bot/src/./main.py", line 476, in start
bot.polling(non_stop=True, interval=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.12/site-packages/telebot/init.py", line 1104, in polling
self.__threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout,
File "/usr/local/python3/lib/python3.12/site-packages/telebot/init.py", line 1179, in __threaded_polling
raise e
File "/usr/local/python3/lib/python3.12/site-packages/telebot/init.py", line 1141, in __threaded_polling
self.worker_pool.raise_exceptions()
File "/usr/local/python3/lib/python3.12/site-packages/telebot/util.py", line 149, in raise_exceptions
raise self.exception_info
File "/usr/local/python3/lib/python3.12/site-packages/telebot/util.py", line 92, in run
task(*args, **kwargs)
File "/root/emias-polling-bot/src/./main.py", line 373, in autoAppointmentStep
asyncio.run(startPolling(message.chat.id))
File "/usr/local/python3/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.12/asyncio/base_events.py", line 664, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/root/emias-polling-bot/src/./main.py", line 189, in startPolling
await poll(chatId)
File "/root/emias-polling-bot/src/./main.py", line 161, in poll
medics = data['result']
~~~~^^^^^^^^^^
KeyError: 'result'
please help )