**Rasa version**: Rasa 1.7.0. (running from docker image rasa/rasa)
**Rasa SD…K version** (if used & relevant): not relevant
**Rasa X version** (if used & relevant): not relevant
**Python version**: docker image rasa/rasa (what ever python version in it)
**Operating system** (windows, osx, ...): docker image rasa/rasa...
**Issue**: error on fetching aws s3 model
**Error (including full traceback)**:
```
2020-04-02 12:08:37 INFO root - Starting Rasa server on http://localhost:5005
2020-04-02 12:08:39 ERROR rasa.core.agent - Could not load model due to expected string or bytes-like object.
[2020-04-02 12:08:39 +0000] [1] [ERROR] Experienced exception while trying to serve
Traceback (most recent call last):
File "/build/lib/python3.6/site-packages/sanic/app.py", line 1133, in run
serve(**server_settings)
File "/build/lib/python3.6/site-packages/sanic/server.py", line 857, in serve
trigger_events(before_start, loop)
File "/build/lib/python3.6/site-packages/sanic/server.py", line 634, in trigger_events
loop.run_until_complete(result)
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
File "/build/lib/python3.6/site-packages/rasa/core/run.py", line 247, in load_agent_on_start
action_endpoint=endpoints.action,
File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 259, in load_agent
model_server=model_server,
File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 976, in load_from_remote_storage
persistor = get_persistor(remote_storage)
File "/build/lib/python3.6/site-packages/rasa/nlu/persistor.py", line 19, in get_persistor
os.environ.get("BUCKET_NAME"), os.environ.get("AWS_ENDPOINT_URL")
File "/build/lib/python3.6/site-packages/rasa/nlu/persistor.py", line 121, in __init__
self._ensure_bucket_exists(bucket_name)
File "/build/lib/python3.6/site-packages/rasa/nlu/persistor.py", line 143, in _ensure_bucket_exists
Bucket=bucket_name, CreateBucketConfiguration=bucket_config
File "/build/lib/python3.6/site-packages/boto3/resources/factory.py", line 520, in do_action
response = action(self, *args, **kwargs)
File "/build/lib/python3.6/site-packages/boto3/resources/action.py", line 83, in __call__
response = getattr(parent.meta.client, operation_name)(**params)
File "/build/lib/python3.6/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/build/lib/python3.6/site-packages/botocore/client.py", line 634, in _make_api_call
api_params, operation_model, context=request_context)
File "/build/lib/python3.6/site-packages/botocore/client.py", line 680, in _convert_to_request_dict
api_params, operation_model, context)
File "/build/lib/python3.6/site-packages/botocore/client.py", line 712, in _emit_api_params
params=api_params, model=operation_model, context=context)
File "/build/lib/python3.6/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/build/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/build/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/build/lib/python3.6/site-packages/botocore/handlers.py", line 219, in validate_bucket_name
if VALID_BUCKET.search(bucket) is None:
TypeError: expected string or bytes-like object
No chat connector configured, falling back to the REST input channel. To connect your bot to another channel, read the docs here: https://rasa.com/docs/rasa/user-guide/messaging-and-voice-channels
Traceback (most recent call last):
```
**Command or request that led to error**:
```
my envs:
export AWS_DEFAULT_REGION=“eu-central-1”
export AWS_SECRET_ACCESS_KEY=“secret…”
export AWS_ACCESS_KEY_ID=“secret…”
export BUCKET_NAME=“nlp.models”
export AWS_ENDPOINT_URL=“https://s3.eu-central-1.amazonaws.com”
docker run -p 5005:5005 rasa/rasa run -m latest-model.tar.gz --enable-api --log-file out.log --remote-storage aws
```
**Content of configuration file (config.yml)** (if relevant):
```yml
language: en
pipeline:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: CRFEntityExtractor
features:
- - low
- upper
- - low
- prefix5
- prefix2
- suffix5
- suffix3
- suffix2
- digit
- pattern
- - low
- upper
- name: EntitySynonymMapper
- name: CountVectorsFeaturizer
analyzer: char_wb
min_ngram: 1
max_ngram: 4
- name: EmbeddingIntentClassifier
- name: DucklingHTTPExtractor
url: 'http://duckling-server:8000'
dimensions:
- time
- number
- distance
timezone: Asia/Jerusalem
locale: en-US
policies:
- name: MemoizationPolicy
- name: KerasPolicy
- name: MappingPolicy
```
**Content of domain file (domain.yml)** (if relevant):
```yml
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- offend
- compliment
- whatsup
- dont_know
- agent_name
- bye
- come_again
- something_else
- explain_question
- later
- hello
- hold_on
- stop
- thanks
- None
- provideYearMakeModel
- live_agent
- are_you_bot
- flow_length
entities:
- make
- wh_question
- coverage
- province
- bool
actions:
- utter_greet
- utter_cheer_up
- utter_did_that_help
- utter_happy
- utter_goodbye
- utter_iamabot
```
Hi, After running over every possible post related to running a rasa rest service with a model from aws s3 I came to a dead end. It simply isn’t working and the documentation for it is too broad.
The s3 file structure is plain simple:
s3 bucket called nlp.models (in frankfurt , eu-central-1) inside that bucket there’s 1 file: latest-model.tar.gz
My aws IAM permissions are set and verified with 10 other applications fetching from s3 from that machine.
This is not working guys, is the AWS_ENDPOINT_URL wrong? I tried with setting it to https://s3.amazonaws.com/ , with and with an ending slash. tried also with https://s3.eu-central-1.amazonaws.com/nlp.models with no success.
You must give a proper usage example, this isn’t the first feature that isn’t working.
Please advise , Thank you