RASA rest endpoints are not working while RASA open source server is up and running

My RASA Open Source server is up and running on localhost. When I open https://localhost:5055 in a browser, It shows Hello from Rasa: 3.3.0 message. Also, http://127.0.0.1:5005/webhooks/rasa shows {"status":"ok"} but when I call the open-source server API https://localhost:5005/webhooks/rest/webhook thour POST request then RASA server is not responding. I run the Rasa server via rasa run -m models --enable-api --cors ‘*’ --debugg . My console logs are as follows:

2022-11-03 09:00:33 DEBUG    rasa.cli.utils  - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\sanic_cors\extension.py:39: DeprecationWarning: distutils Version classes are deprecated. Use packaging.v
ersion instead.
  SANIC_VERSION = LooseVersion(sanic_version)
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\future\standard_library\__init__.py:65: DeprecationWarning: the imp module is deprecated in favour of imp
ortlib; see the module's documentation for alternative uses
  import imp
2022-11-03 09:00:39 DEBUG    h5py._conv  - Creating converter from 7 to 5
2022-11-03 09:00:39 DEBUG    h5py._conv  - Creating converter from 5 to 7
2022-11-03 09:00:39 DEBUG    h5py._conv  - Creating converter from 7 to 5
2022-11-03 09:00:39 DEBUG    h5py._conv  - Creating converter from 5 to 7
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\keras_preprocessing\image\utils.py:23: DeprecationWarning: NEAREST is deprecated and will be removed in P
illow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
  'nearest': pil_image.NEAREST,
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\keras_preprocessing\image\utils.py:24: DeprecationWarning: BILINEAR is deprecated and will be removed in 
Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  'bilinear': pil_image.BILINEAR,
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\keras_preprocessing\image\utils.py:25: DeprecationWarning: BICUBIC is deprecated and will be removed in P
illow 10 (2023-07-01). Use Resampling.BICUBIC instead.
  'bicubic': pil_image.BICUBIC,
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\keras_preprocessing\image\utils.py:28: DeprecationWarning: HAMMING is deprecated and will be removed in P
illow 10 (2023-07-01). Use Resampling.HAMMING instead.
  if hasattr(pil_image, 'HAMMING'):
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\keras_preprocessing\image\utils.py:30: DeprecationWarning: BOX is deprecated and will be removed in Pillo
w 10 (2023-07-01). Use Resampling.BOX instead.
  if hasattr(pil_image, 'BOX'):
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\keras_preprocessing\image\utils.py:33: DeprecationWarning: LANCZOS is deprecated and will be removed in P
illow 10 (2023-07-01). Use Resampling.LANCZOS instead.
  if hasattr(pil_image, 'LANCZOS'):
2022-11-03 09:00:46 DEBUG    rasa.core.utils  - Available web server routes: 
/conversations/<conversation_id:path>/messages     POST                           add_message
/conversations/<conversation_id:path>/tracker/events POST                           append_events
/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
/model/test/intents                                POST                           evaluate_intents
/model/test/stories                                POST                           evaluate_stories
/conversations/<conversation_id:path>/execute      POST                           execute_action
/domain                                            GET                            get_domain
/                                                  GET                            hello
/model                                             PUT                            load_model
/model/parse                                       POST                           parse
/conversations/<conversation_id:path>/predict      POST                           predict
/conversations/<conversation_id:path>/tracker/events PUT                            replace_events
/conversations/<conversation_id:path>/story        GET                            retrieve_story
/conversations/<conversation_id:path>/tracker      GET                            retrieve_tracker
/status                                            GET                            status
/model/predict                                     POST                           tracker_predict
/model/train                                       POST                           train
/conversations/<conversation_id:path>/trigger_intent POST                           trigger_intent
/webhooks/twilio                                   GET                            twilio_webhook.health
/webhooks/twilio/webhook                           POST                           twilio_webhook.message
/model                                             DELETE                         unload_model
/version                                           GET                            version
2022-11-03 09:00:46 INFO     root  - Starting Rasa server on http://0.0.0.0:5005
2022-11-03 09:00:46 DEBUG    rasa.core.utils  - Using the default number of Sanic workers (1).
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\rasa\shared\core\slot_mappings.py:221: UserWarning: Slot auto-fill has been removed in 3.0 and replaced w
ith a new explicit mechanism to set slots. Please refer to https://rasa.com/docs/rasa/domain#slots to learn more.
  rasa.shared.utils.io.raise_warning(
2022-11-03 09:00:48 DEBUG    urllib3.connectionpool  - Starting new HTTPS connection (1): api.segment.io:443
2022-11-03 09:00:49 DEBUG    urllib3.connectionpool  - https://api.segment.io:443 "POST /v1/track HTTP/1.1" 200 21
2022-11-03 09:00:49 DEBUG    rasa.core.tracker_store  - Connected to InMemoryTrackerStore.
2022-11-03 09:00:49 DEBUG    rasa.core.lock_store  - Connected to lock store 'InMemoryLockStore'.
2022-11-03 09:00:49 DEBUG    rasa.core.nlg.generator  - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'.
2022-11-03 09:00:49 INFO     rasa.core.processor  - Loading model models\20221102-233516-simple-forest.tar.gz...
2022-11-03 09:00:51 DEBUG    rasa.engine.storage.local_model_storage  - Extracted model to 'C:\Users\SSS_DID\AppData\Local\Temp\tmp4id2wea3'.
2022-11-03 09:00:51 DEBUG    rasa.engine.graph  - Node 'nlu_message_converter' loading 'NLUMessageConverter.load' and kwargs: '{}'.
2022-11-03 09:00:51 DEBUG    rasa.engine.graph  - Node 'run_WhitespaceTokenizer0' loading 'WhitespaceTokenizer.load' and kwargs: '{}'.
2022-11-03 09:00:51 DEBUG    rasa.engine.graph  - Node 'run_RegexFeaturizer1' loading 'RegexFeaturizer.load' and kwargs: '{}'.
2022-11-03 09:00:51 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_RegexFeaturizer1' was requested for reading.
2022-11-03 09:00:51 DEBUG    rasa.engine.graph  - Node 'run_LexicalSyntacticFeaturizer2' loading 'LexicalSyntacticFeaturizer.load' and kwargs: '{}'.
2022-11-03 09:00:51 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_LexicalSyntacticFeaturizer2' was requested for reading.
2022-11-03 09:00:51 DEBUG    rasa.engine.graph  - Node 'run_CountVectorsFeaturizer3' loading 'CountVectorsFeaturizer.load' and kwargs: '{}'.
2022-11-03 09:00:51 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_CountVectorsFeaturizer3' was requested for reading.
2022-11-03 09:00:51 DEBUG    rasa.engine.graph  - Node 'run_CountVectorsFeaturizer4' loading 'CountVectorsFeaturizer.load' and kwargs: '{}'.
2022-11-03 09:00:51 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_CountVectorsFeaturizer4' was requested for reading.
2022-11-03 09:00:51 DEBUG    rasa.engine.graph  - Node 'run_DIETClassifier5' loading 'DIETClassifier.load' and kwargs: '{}'.
2022-11-03 09:00:51 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_DIETClassifier5' was requested for reading.
2022-11-03 09:00:51 DEBUG    rasa.utils.tensorflow.models  - Loading the model from C:\Users\SSS_DID\AppData\Local\Temp\tmpduqvq06o\train_DIETClassifier5\DIETClass
ifier.tf_model with finetune_mode=False...
2022-11-03 09:00:51 DEBUG    rasa.nlu.classifiers.diet_classifier  - Following metrics will be logged during training: 
2022-11-03 09:00:51 DEBUG    rasa.nlu.classifiers.diet_classifier  -   t_loss (total loss)
2022-11-03 09:00:51 DEBUG    rasa.nlu.classifiers.diet_classifier  -   i_acc (intent acc)
2022-11-03 09:00:51 DEBUG    rasa.nlu.classifiers.diet_classifier  -   i_loss (intent loss)
2022-11-03 09:00:51 DEBUG    rasa.nlu.classifiers.diet_classifier  -   e_f1 (entity f1)
2022-11-03 09:00:51 DEBUG    rasa.nlu.classifiers.diet_classifier  -   e_loss (entity loss)
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\tensorflow\python\framework\indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSl
ices(indices=Tensor("gradients/cond_grad/gradients/cond/GatherV2_grad/Reshape_1:0", shape=(None,), dtype=int32), values=Tensor("gradients/cond_grad/gradients/cond/
GatherV2_grad/Reshape:0", shape=(None,), dtype=float32), dense_shape=Tensor("gradients/cond_grad/gradients/cond/GatherV2_grad/Cast:0", shape=(1,), dtype=int32))) t
o a dense Tensor of unknown shape. This may consume a large amount of memory.
  warnings.warn(
2022-11-03 09:01:58 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
2022-11-03 09:01:58 DEBUG    rasa.engine.graph  - Node 'run_EntitySynonymMapper6' loading 'EntitySynonymMapper.load' and kwargs: '{}'.
2022-11-03 09:01:58 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_EntitySynonymMapper6' was requested for reading.
2022-11-03 09:01:58 DEBUG    rasa.nlu.extractors.entity_synonyms  - Failed to load ABCMeta from model storage. Resource 'train_EntitySynonymMapper6' doesn't exist.
2022-11-03 09:01:58 DEBUG    rasa.engine.graph  - Node 'run_ResponseSelector7' loading 'ResponseSelector.load' and kwargs: '{}'.
2022-11-03 09:01:58 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_ResponseSelector7' was requested for reading.
2022-11-03 09:01:58 DEBUG    rasa.nlu.classifiers.diet_classifier  - Failed to load ABCMeta from model storage. Resource 'train_ResponseSelector7' doesn't exist.  
2022-11-03 09:01:58 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_ResponseSelector7' was requested for reading.
2022-11-03 09:01:58 DEBUG    rasa.nlu.selectors.response_selector  - Failed to load ResponseSelector from model storage. Resource 'train_ResponseSelector7' doesn't
 exist.
2022-11-03 09:01:58 DEBUG    rasa.engine.graph  - Node 'run_FallbackClassifier8' loading 'FallbackClassifier.load' and kwargs: '{}'.
2022-11-03 09:01:58 DEBUG    rasa.engine.graph  - Node 'run_RegexMessageHandler' loading 'RegexMessageHandler.load' and kwargs: '{}'.
2022-11-03 09:01:58 DEBUG    rasa.engine.graph  - Node 'domain_provider' loading 'DomainProvider.load' and kwargs: '{}'.
2022-11-03 09:01:58 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'domain_provider' was requested for reading.
2022-11-03 09:01:58 DEBUG    rasa.engine.graph  - Node 'run_MemoizationPolicy0' loading 'MemoizationPolicy.load' and kwargs: '{}'.
2022-11-03 09:01:58 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_MemoizationPolicy0' was requested for reading.
2022-11-03 09:01:59 DEBUG    rasa.engine.graph  - Node 'run_RulePolicy1' loading 'RulePolicy.load' and kwargs: '{}'.
2022-11-03 09:01:59 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_RulePolicy1' was requested for reading.
2022-11-03 09:01:59 DEBUG    rasa.engine.graph  - Node 'run_UnexpecTEDIntentPolicy2' loading 'UnexpecTEDIntentPolicy.load' and kwargs: '{}'.
2022-11-03 09:01:59 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_UnexpecTEDIntentPolicy2' was requested for reading.
2022-11-03 09:01:59 DEBUG    rasa.utils.tensorflow.models  - Loading the model from C:\Users\SSS_DID\AppData\Local\Temp\tmpduqvq06o\train_UnexpecTEDIntentPolicy2\u
nexpected_intent_policy.tf_model with finetune_mode=False...
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\tensorflow\python\framework\indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSl
ices(indices=Tensor("gradients/cond_grad/Identity_1:0", shape=(None,), dtype=int64), values=Tensor("gradients/cond_grad/Identity:0", shape=(None,), dtype=float32),
 dense_shape=Tensor("gradients/cond_grad/Identity_2:0", shape=(1,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory.  
  warnings.warn(
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\tensorflow\python\framework\indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSl
ices(indices=Tensor("gradients/cond_1_grad/Identity_1:0", shape=(None,), dtype=int64), values=Tensor("gradients/cond_1_grad/Identity:0", shape=(None,), dtype=float
32), dense_shape=Tensor("gradients/cond_1_grad/Identity_2:0", shape=(1,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of mem
ory.
  warnings.warn(
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\tensorflow\python\framework\indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSl
ices(indices=Tensor("gradients/cond_2_grad/Identity_1:0", shape=(None,), dtype=int64), values=Tensor("gradients/cond_2_grad/Identity:0", shape=(None,), dtype=float
32), dense_shape=Tensor("gradients/cond_2_grad/Identity_2:0", shape=(1,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of mem
ory.
  warnings.warn(
C:\Users\SSS_DID\anaconda3\envs\chatbot\lib\site-packages\tensorflow\python\framework\indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSl
ices(indices=Tensor("gradients/cond_3_grad/Identity_1:0", shape=(None,), dtype=int64), values=Tensor("gradients/cond_3_grad/Identity:0", shape=(None,), dtype=float
32), dense_shape=Tensor("gradients/cond_3_grad/Identity_2:0", shape=(1,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of mem
ory.
  warnings.warn(
2022-11-03 09:02:21 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
2022-11-03 09:02:21 WARNING  rasa.shared.utils.common  - The UnexpecTED Intent Policy is currently experimental and might change or be removed in the future 🔬 Ple
ase share your feedback on it in the forum (http://forum.rasa.com) to help us make this feature ready for production.
2022-11-03 09:02:21 DEBUG    rasa.engine.graph  - Node 'run_TEDPolicy3' loading 'TEDPolicy.load' and kwargs: '{}'.
2022-11-03 09:02:21 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_TEDPolicy3' was requested for reading.
2022-11-03 09:02:21 DEBUG    rasa.utils.tensorflow.models  - Loading the model from C:\Users\SSS_DID\AppData\Local\Temp\tmpduqvq06o\train_TEDPolicy3\ted_policy.tf_
model with finetune_mode=False...
2022-11-03 09:02:42 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
2022-11-03 09:02:42 DEBUG    rasa.engine.graph  - Node 'rule_only_data_provider' loading 'RuleOnlyDataProvider.load' and kwargs: '{}'.
2022-11-03 09:02:42 DEBUG    rasa.engine.storage.local_model_storage  - Resource 'train_RulePolicy1' was requested for reading.
2022-11-03 09:02:42 DEBUG    rasa.engine.graph  - Node 'select_prediction' loading 'DefaultPolicyPredictionEnsemble.load' and kwargs: '{}'.
2022-11-03 09:02:42 INFO     root  - Rasa server is up and running.
2022-11-03 09:02:42 INFO     root  - Enabling coroutine debugging. Loop id 1993989830976.

However, things work perfectly with rasa interactive mode. What is wrong with RASA Open source:

RASA Open Source and RASA SDK version: 3.3.0

python 3.9

Operating System: Windows 10

As you can see, the server is running on http://0.0.0.0:5005 (over http and not https)

So, the following should work

http://localhost:5005/webhooks/rest/webhook

1 Like