NotFound: Requested URL /webhooks/telegram/webhook not found

Hi, I’m trying to deploying my Rasa bot on Telegram, I ran a server with ngrok on port 5005, and performed all the steps for creating a Telegram bot and connecting it to Rasa (including modifying the endpoint.yml file). Then I ran rasa run. When I try to text to the bot I get this error:

How can I solve that? Thank you, Tiziano

Did you did all the steps for the credentials.yml file?

Yes I did

You gave rasa the http address. Telegram needs the https address.

Nop, I used https image

@tiziano can you do rasa run --debug and show me the beginning of the logs? I’d like to see which endpoints get started

2019-12-11 09:17:21 DEBUG rasa.cli.utils - Parameter 'endpoints' not set. Using default location 'endpoints.yml' instead.

It’s the correct one

No, I would like to see the full logs from the beginning - it’ll show you which endpoints are available on the server. I want to check if /webhooks/telegram/webhook is among them

That was the first line, here is the complete response for the command rasa run --debug:

2019-12-11 10:06:32 DEBUG    rasa.cli.utils  - Parameter 'endpoints' not set. Using default location 'endpoints.yml' instead.
2019-12-11 10:06:32 DEBUG    rasa.cli.utils  - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
2019-12-11 10:06:32 DEBUG    rasa.model  - Extracted model to 'C:\Users\TIZIAN~1\AppData\Local\Temp\tmp3v9uktxx'.
2019-12-11 10:06:33 DEBUG    sanic.root  - CORS: Configuring CORS with resources: {'/*': {'origins': [''], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': None, 'supports_credentials': True, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': ''}}, 'intercept_exceptions': True, 'always_send': True}}
2019-12-11 10:06:33 DEBUG    rasa.core.utils  - Available web server routes:
/webhooks/rasa                                     GET                            custom_webhook_RasaChatInput.health
/webhooks/rasa/webhook                             POST                           custom_webhook_RasaChatInput.receive
/webhooks/rest                                     GET                            custom_webhook_RestInput.health
/webhooks/rest/webhook                             POST                           custom_webhook_RestInput.receive
/                                                  GET                            hello
2019-12-11 10:06:33 INFO     root  - Starting Rasa server on http://localhost:5005
2019-12-11 10:06:33 DEBUG    rasa.core.utils  - Using the default number of Sanic workers (1).
2019-12-11 10:06:33 INFO     root  - Enabling coroutine debugging. Loop id 1758534169992.
2019-12-11 10:06:33 DEBUG    rasa.model  - Extracted model to 'C:\Users\TIZIAN~1\AppData\Local\Temp\tmp88r2ybab'.
2019-12-11 10:06:34 INFO     numexpr.utils  - NumExpr defaulting to 8 threads.
2019-12-11 10:06:36 INFO     absl  - Entry Point [tensor2tensor.envs.tic_tac_toe_env:TicTacToeEnv] registered with id [T2TEnv-TicTacToeEnv-v0]
2019-12-11 10:06:37 DEBUG    rasa.core.tracker_store  - Connected to InMemoryTrackerStore.
2019-12-11 10:06:37 DEBUG    rasa.core.lock_store  - Connected to lock store 'InMemoryLockStore'.
2019-12-11 10:06:37 DEBUG    rasa.model  - Extracted model to 'C:\Users\TIZIAN~1\AppData\Local\Temp\tmpq2fm8d79'.
2019-12-11 10:06:37 DEBUG    pykwalify.compat  - Using yaml library: c:\users\tizianolabruna\anaconda3\lib\site-packages\ruamel\yaml\__init__.py

So, no, /webhooks/telegram/webhook doesn’t seem to be among them. How do I add it?

@akelad @tiziano Any solution to this? I am facing problem with /webhooks/facebook/webhook.

@tiziano @kabeer did you specify the channels in the endpoints.yml file?

Yes I did

Sorry, I meant credentials.yml

Now I cannot remember exactly, cause it was more than 1 month ago, but I’m pretty sure I followed all the instructions on how to connect it

I will try again and let you know though

1 Like

Seems like the channel is somehow not loaded in rasa and when telegram tries to send messages to Rasa, Rasa can’t handle the requested url. I guess it was the credentials.yml vs . endpoints.yml?

I’m facing this same issue. Does anybody know why? @Tobias_Wochinger answer doesn’t tell me much

I am seeing similar error, 500 in my case here is the complete debug log. Endpoint was available and not sure what happen after that. Look like its trying to connect to http:// instead https://

This is what my credentials.yml looks like.

telegram:
  access_token: "760038:<masked>"
  verify: "rasa_telegram_bot"
  webhook_url: "https://turkey-tops-prawn.ngrok-free.app/webhooks/telegram/webhook"
 003-integrate-with-telegram % rasa run      
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/rasa/core/tracker_store.py:1044: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
  Base: DeclarativeMeta = declarative_base()
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/rasa/shared/utils/validation.py:134: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/pkg_resources/__init__.py:2825: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/pkg_resources/__init__.py:2825: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/sanic_cors/extension.py:39: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  SANIC_VERSION = LooseVersion(sanic_version)
2024-05-30 18:04:12 INFO     root  - Starting Rasa server on http://0.0.0.0:5005
2024-05-30 18:04:12 INFO     rasa.core.processor  - Loading model models/20240530-180003-swarm-rout.tar.gz...
2024-05-30 18:04:12 WARNING  absl  - At this time, the v2.11+ optimizer `tf.keras.optimizers.Adam` runs slowly on M1/M2 Macs, please use the legacy Keras optimizer instead, located at `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:04:12 WARNING  absl  - There is a known slowdown when using v2.11+ Keras optimizers on M1/M2 Macs. Falling back to the legacy Keras optimizer, i.e., `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:04:16 WARNING  absl  - At this time, the v2.11+ optimizer `tf.keras.optimizers.Adam` runs slowly on M1/M2 Macs, please use the legacy Keras optimizer instead, located at `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:04:16 WARNING  absl  - There is a known slowdown when using v2.11+ Keras optimizers on M1/M2 Macs. Falling back to the legacy Keras optimizer, i.e., `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:04:20 WARNING  rasa.shared.utils.common  - The UnexpecTED Intent Policy is currently experimental and might change or be removed in the future 🔬 Please share your feedback on it in the forum (https://forum.rasa.com) to help us make this feature ready for production.
2024-05-30 18:04:20 WARNING  absl  - At this time, the v2.11+ optimizer `tf.keras.optimizers.Adam` runs slowly on M1/M2 Macs, please use the legacy Keras optimizer instead, located at `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:04:20 WARNING  absl  - There is a known slowdown when using v2.11+ Keras optimizers on M1/M2 Macs. Falling back to the legacy Keras optimizer, i.e., `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:04:23 INFO     root  - Rasa server is up and running.
Exception occurred while handling uri: 'http://turkey-tops-prawn.ngrok-free.app/webhooks/telegram/webhook'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    )
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/rasa/core/channels/telegram.py", line 223, in message
    credentials = await out_channel.get_me()
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/bot.py", line 215, in get_me
    result = await self.request(api.Methods.GET_ME, payload)
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/base.py", line 208, in request
    return await api.make_request(self.session, self.server, self.__token, method, data, files,
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/api.py", line 139, in make_request
    async with session.post(url, data=req, **kwargs) as response:
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/client.py", line 1197, in __aenter__
    self._resp = await self._coro
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/client.py", line 479, in _request
    handle = tm.start()
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/helpers.py", line 660, in start
    return self._loop.call_at(when, self.__call__)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 725, in call_at
    self._check_closed()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
^C%                                                                                                                                                                                                                                                  (venv) bkpandey@Balkrishnas-MacBook-Pro 003-integrate-with-telegram % rasa run --debug
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/rasa/core/tracker_store.py:1044: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
  Base: DeclarativeMeta = declarative_base()
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/rasa/shared/utils/validation.py:134: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/pkg_resources/__init__.py:2825: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/pkg_resources/__init__.py:2825: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
2024-05-30 18:06:35 DEBUG    rasa.cli.utils  - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/sanic_cors/extension.py:39: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  SANIC_VERSION = LooseVersion(sanic_version)
2024-05-30 18:06:36 DEBUG    h5py._conv  - Creating converter from 7 to 5
2024-05-30 18:06:36 DEBUG    h5py._conv  - Creating converter from 5 to 7
2024-05-30 18:06:36 DEBUG    h5py._conv  - Creating converter from 7 to 5
2024-05-30 18:06:36 DEBUG    h5py._conv  - Creating converter from 5 to 7
2024-05-30 18:06:37 DEBUG    sanic.root  - Sanic-CORS: Configuring CORS with resources: {'/*': {'origins': [''], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'filename', 'supports_credentials': True, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': ''}}, 'intercept_exceptions': True, 'always_send': True}}
2024-05-30 18:06:37 DEBUG    aiogram  - Make request: "setWebhook" with data: "{'url': 'https://turkey-tops-prawn.ngrok-free.app/webhooks/telegram/webhook'}" and files "{}"
2024-05-30 18:06:37 DEBUG    aiogram  - Response for setWebhook: [200] "'{"ok":true,"result":true,"description":"Webhook is already set"}'"
2024-05-30 18:06:37 DEBUG    rasa.core.utils  - Available web server routes: 
/webhooks/rasa                                     GET                            rasa_core_no_api.custom_webhook_RasaChatInput.health
/webhooks/rasa/webhook                             POST                           rasa_core_no_api.custom_webhook_RasaChatInput.receive
/webhooks/rest                                     GET                            rasa_core_no_api.custom_webhook_RestInput.health
/webhooks/rest/webhook                             POST                           rasa_core_no_api.custom_webhook_RestInput.receive
/                                                  GET                            rasa_core_no_api.hello
/webhooks/telegram                                 GET                            rasa_core_no_api.telegram_webhook.health
/webhooks/telegram/webhook                         POST                           rasa_core_no_api.telegram_webhook.message
/webhooks/telegram/set_webhook                     POST                           rasa_core_no_api.telegram_webhook.set_webhook
2024-05-30 18:06:37 INFO     root  - Starting Rasa server on http://0.0.0.0:5005
2024-05-30 18:06:37 DEBUG    rasa.core.utils  - Using the default number of Sanic workers (1).
2024-05-30 18:06:38 DEBUG    rasa.telemetry  - Skipping telemetry reporting: no license hash found.
2024-05-30 18:06:38 DEBUG    rasa.core.tracker_store  - Connected to InMemoryTrackerStore.
2024-05-30 18:06:38 DEBUG    rasa.core.lock_store  - Connected to lock store 'InMemoryLockStore'.
2024-05-30 18:06:38 DEBUG    rasa.core.nlg.generator  - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'.
2024-05-30 18:06:38 INFO     rasa.core.processor  - Loading model models/20240530-180003-swarm-rout.tar.gz...
2024-05-30 18:06:38 DEBUG    rasa.engine.storage.local_model_storage  - Extracted model to '/var/folders/2h/nc9p55t973v7zry3rync7q2m0000gn/T/tmpyjnhtyux'.
2024-05-30 18:06:38 DEBUG    rasa.engine.graph  - Node 'nlu_message_converter' loading 'NLUMessageConverter.load' and kwargs: '{}'.
2024-05-30 18:06:38 DEBUG    rasa.engine.graph  - Node 'run_WhitespaceTokenizer0' loading 'WhitespaceTokenizer.load' and kwargs: '{}'.
2024-05-30 18:06:38 DEBUG    rasa.engine.graph  - Node 'run_RegexFeaturizer1' loading 'RegexFeaturizer.load' and kwargs: '{}'.
2024-05-30 18:06:38 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_RegexFeaturizer1' was requested for reading.
2024-05-30 18:06:38 DEBUG    rasa.engine.graph  - Node 'run_LexicalSyntacticFeaturizer2' loading 'LexicalSyntacticFeaturizer.load' and kwargs: '{}'.
2024-05-30 18:06:38 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_LexicalSyntacticFeaturizer2' was requested for reading.
2024-05-30 18:06:38 DEBUG    rasa.engine.graph  - Node 'run_CountVectorsFeaturizer3' loading 'CountVectorsFeaturizer.load' and kwargs: '{}'.
2024-05-30 18:06:38 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_CountVectorsFeaturizer3' was requested for reading.
2024-05-30 18:06:38 DEBUG    rasa.engine.graph  - Node 'run_CountVectorsFeaturizer4' loading 'CountVectorsFeaturizer.load' and kwargs: '{}'.
2024-05-30 18:06:38 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_CountVectorsFeaturizer4' was requested for reading.
2024-05-30 18:06:38 DEBUG    rasa.engine.graph  - Node 'run_DIETClassifier5' loading 'DIETClassifier.load' and kwargs: '{}'.
2024-05-30 18:06:38 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_DIETClassifier5' was requested for reading.
2024-05-30 18:06:38 DEBUG    rasa.utils.tensorflow.models  - Loading the model from /var/folders/2h/nc9p55t973v7zry3rync7q2m0000gn/T/tmpuuylmvk5/train_DIETClassifier5/DIETClassifier.tf_model with finetune_mode=False...
2024-05-30 18:06:38 DEBUG    rasa.nlu.classifiers.diet_classifier  - You specified 'DIET' to train entities, but no entities are present in the training data. Skipping training of entities.
2024-05-30 18:06:38 DEBUG    rasa.nlu.classifiers.diet_classifier  - Following metrics will be logged during training: 
2024-05-30 18:06:38 DEBUG    rasa.nlu.classifiers.diet_classifier  -   t_loss (total loss)
2024-05-30 18:06:38 DEBUG    rasa.nlu.classifiers.diet_classifier  -   i_acc (intent acc)
2024-05-30 18:06:38 DEBUG    rasa.nlu.classifiers.diet_classifier  -   i_loss (intent loss)
2024-05-30 18:06:38 WARNING  absl  - At this time, the v2.11+ optimizer `tf.keras.optimizers.Adam` runs slowly on M1/M2 Macs, please use the legacy Keras optimizer instead, located at `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:06:38 WARNING  absl  - There is a known slowdown when using v2.11+ Keras optimizers on M1/M2 Macs. Falling back to the legacy Keras optimizer, i.e., `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:06:41 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'run_EntitySynonymMapper6' loading 'EntitySynonymMapper.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_EntitySynonymMapper6' was requested for reading.
2024-05-30 18:06:41 DEBUG    rasa.nlu.extractors.entity_synonyms  - Failed to load ABCMeta from model storage. Resource 'train_EntitySynonymMapper6' doesn't exist.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'run_ResponseSelector7' loading 'ResponseSelector.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_ResponseSelector7' was requested for reading.
2024-05-30 18:06:41 DEBUG    rasa.nlu.classifiers.diet_classifier  - Failed to load ABCMeta from model storage. Resource 'train_ResponseSelector7' doesn't exist.
2024-05-30 18:06:41 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_ResponseSelector7' was requested for reading.
2024-05-30 18:06:41 DEBUG    rasa.nlu.selectors.response_selector  - Failed to load ResponseSelector from model storage. Resource 'train_ResponseSelector7' doesn't exist.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'run_FallbackClassifier8' loading 'FallbackClassifier.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'run_RegexMessageHandler' loading 'RegexMessageHandler.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'domain_provider' loading 'DomainProvider.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'domain_provider' was requested for reading.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'run_MemoizationPolicy0' loading 'MemoizationPolicy.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_MemoizationPolicy0' was requested for reading.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'run_RulePolicy1' loading 'RulePolicy.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_RulePolicy1' was requested for reading.
2024-05-30 18:06:41 DEBUG    rasa.engine.graph  - Node 'run_UnexpecTEDIntentPolicy2' loading 'UnexpecTEDIntentPolicy.load' and kwargs: '{}'.
2024-05-30 18:06:41 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_UnexpecTEDIntentPolicy2' was requested for reading.
2024-05-30 18:06:41 DEBUG    rasa.utils.tensorflow.models  - Loading the model from /var/folders/2h/nc9p55t973v7zry3rync7q2m0000gn/T/tmpuuylmvk5/train_UnexpecTEDIntentPolicy2/unexpected_intent_policy.tf_model with finetune_mode=False...
2024-05-30 18:06:42 WARNING  absl  - At this time, the v2.11+ optimizer `tf.keras.optimizers.Adam` runs slowly on M1/M2 Macs, please use the legacy Keras optimizer instead, located at `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:06:42 WARNING  absl  - There is a known slowdown when using v2.11+ Keras optimizers on M1/M2 Macs. Falling back to the legacy Keras optimizer, i.e., `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:06:45 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
2024-05-30 18:06:45 WARNING  rasa.shared.utils.common  - The UnexpecTED Intent Policy is currently experimental and might change or be removed in the future 🔬 Please share your feedback on it in the forum (https://forum.rasa.com) to help us make this feature ready for production.
2024-05-30 18:06:45 DEBUG    rasa.engine.graph  - Node 'run_TEDPolicy3' loading 'TEDPolicy.load' and kwargs: '{}'.
2024-05-30 18:06:45 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_TEDPolicy3' was requested for reading.
2024-05-30 18:06:45 DEBUG    rasa.utils.tensorflow.models  - Loading the model from /var/folders/2h/nc9p55t973v7zry3rync7q2m0000gn/T/tmpuuylmvk5/train_TEDPolicy3/ted_policy.tf_model with finetune_mode=False...
2024-05-30 18:06:45 WARNING  absl  - At this time, the v2.11+ optimizer `tf.keras.optimizers.Adam` runs slowly on M1/M2 Macs, please use the legacy Keras optimizer instead, located at `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:06:45 WARNING  absl  - There is a known slowdown when using v2.11+ Keras optimizers on M1/M2 Macs. Falling back to the legacy Keras optimizer, i.e., `tf.keras.optimizers.legacy.Adam`.
2024-05-30 18:06:48 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
2024-05-30 18:06:48 DEBUG    rasa.engine.graph  - Node 'rule_only_data_provider' loading 'RuleOnlyDataProvider.load' and kwargs: '{}'.
2024-05-30 18:06:48 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_RulePolicy1' was requested for reading.
2024-05-30 18:06:48 DEBUG    rasa.engine.graph  - Node 'select_prediction' loading 'DefaultPolicyPredictionEnsemble.load' and kwargs: '{}'.
2024-05-30 18:06:48 INFO     root  - Rasa server is up and running.
2024-05-30 18:06:48 INFO     root  - Enabling coroutine debugging. Loop id 12431316352.
2024-05-30 18:07:46 DEBUG    aiogram  - Make request: "getMe" with data: "{}" and files "None"
Exception occurred while handling uri: 'http://turkey-tops-prawn.ngrok-free.app/webhooks/telegram/webhook'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    )
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/rasa/core/channels/telegram.py", line 223, in message
    credentials = await out_channel.get_me()
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/bot.py", line 215, in get_me
    result = await self.request(api.Methods.GET_ME, payload)
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/base.py", line 208, in request
    return await api.make_request(self.session, self.server, self.__token, method, data, files,
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/api.py", line 139, in make_request
    async with session.post(url, data=req, **kwargs) as response:
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/client.py", line 1197, in __aenter__
    self._resp = await self._coro
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/client.py", line 479, in _request
    handle = tm.start()
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/helpers.py", line 660, in start
    return self._loop.call_at(when, self.__call__)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 725, in call_at
    self._check_closed()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2024-05-30 18:09:04 DEBUG    aiogram  - Make request: "getMe" with data: "{}" and files "None"
Exception occurred while handling uri: 'http://turkey-tops-prawn.ngrok-free.app/webhooks/telegram/webhook'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    )
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/rasa/core/channels/telegram.py", line 223, in message
    credentials = await out_channel.get_me()
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/bot.py", line 215, in get_me
    result = await self.request(api.Methods.GET_ME, payload)
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/base.py", line 208, in request
    return await api.make_request(self.session, self.server, self.__token, method, data, files,
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiogram/bot/api.py", line 139, in make_request
    async with session.post(url, data=req, **kwargs) as response:
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/client.py", line 1197, in __aenter__
    self._resp = await self._coro
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/client.py", line 479, in _request
    handle = tm.start()
  File "/Users/bkpandey/Documents/workspace/code/rasabot-examples/venv/lib/python3.9/site-packages/aiohttp/helpers.py", line 660, in start
    return self._loop.call_at(when, self.__call__)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 725, in call_at
    self._check_closed()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed