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?