Error updating to Rasa X 0.39.2

Hi !

I have the following issue updating Rasa X 0.39.2 using Docker Compose Quick Install :

TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Full log

Starting the database migration service (http)… :rocket: [2021-05-04 08:36:52 +0000] [1] [INFO] Goin’ Fast @ http://0.0.0.0:8000 INFO:main:Starting the database migration service [2021-05-04 08:36:52 +0000] [1] [INFO] Starting worker [1] INFO:alembic.runtime.migration:Context impl PostgresqlImpl. INFO:alembic.runtime.migration:Will assume transactional DDL. INFO:alembic.runtime.migration:Running upgrade d9a565cab06c → 1080027ae561, Add number_of_training_examples column to intent_evaluation_result table. /usr/local/lib/python3.8/dist-packages/sqlalchemy/dialects/postgresql/base.py:3571: SAWarning: Predicate of partial index conversation_event_flag_index ignored during reflection util.warn( Process ForkProcess-1: Traceback (most recent call last): File “/usr/lib/python3.8/multiprocessing/process.py”, line 315, in _bootstrap self.run() File “/usr/lib/python3.8/multiprocessing/process.py”, line 108, in run self._target(*self._args, **self._kwargs) File “/usr/local/lib/python3.8/dist-packages/rasax/community/utils/common.py”, line 848, in _run_in_process_target fn(*args) File “/usr/local/lib/python3.8/dist-packages/rasax/community/services/db_migration_service.py”, line 35, in _db_migrate sql_migrations.run_migrations(session) File “/usr/local/lib/python3.8/dist-packages/rasax/community/sql_migrations.py”, line 25, in run_migrations _run_schema_migrations(session) File “/usr/local/lib/python3.8/dist-packages/rasax/community/sql_migrations.py”, line 41, in _run_schema_migrations _run_alembic_migration(alembic_config) File “/usr/local/lib/python3.8/dist-packages/rasax/community/sql_migrations.py”, line 65, in _run_alembic_migration command.upgrade(alembic_config, target_revision) File “/usr/local/lib/python3.8/dist-packages/alembic/command.py”, line 298, in upgrade script.run_env() File “/usr/local/lib/python3.8/dist-packages/alembic/script/base.py”, line 489, in run_env util.load_python_file(self.dir, “env.py”) File “/usr/local/lib/python3.8/dist-packages/alembic/util/pyfiles.py”, line 98, in load_python_file module = load_module_py(module_id, path) File “/usr/local/lib/python3.8/dist-packages/alembic/util/compat.py”, line 184, in load_module_py spec.loader.exec_module(module) File “”, line 783, in exec_module File “”, line 219, in _call_with_frames_removed File “/usr/local/lib/python3.8/dist-packages/rasax/community/database/schema_migrations/alembic/env.py”, line 96, in run_migrations_online() File “/usr/local/lib/python3.8/dist-packages/rasax/community/database/schema_migrations/alembic/env.py”, line 86, in run_migrations_online context.run_migrations() File “”, line 8, in run_migrations File “/usr/local/lib/python3.8/dist-packages/alembic/runtime/environment.py”, line 846, in run_migrations self.get_context().run_migrations(**kw) File “/usr/local/lib/python3.8/dist-packages/alembic/runtime/migration.py”, line 522, in run_migrations step.migration_fn(**kw) File “/usr/local/lib/python3.8/dist-packages/rasax/community/database/schema_migrations/alembic/versions/migration_2021_03_31_add_intent_evaluation_result_no_examples_column_1080027ae561.py”, line 59, in upgrade report_payload = _parse_payload(report.evaluation_payload) File “/usr/local/lib/python3.8/dist-packages/rasax/community/database/schema_migrations/alembic/versions/migration_2021_03_31_add_intent_evaluation_result_no_examples_column_1080027ae561.py”, line 94, in _parse_pa yload return json.loads(payload) File “/usr/lib/python3.8/json/init.py”, line 341, in loads raise TypeError(f’the JSON object must be str, bytes or bytearray, ’ TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Rasa Version RASA_X_VERSION=0.39.2 RASA_VERSION=2.4.0

Ubuntu Version No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic

Thanks for your help !

Hi @guillaumecostanza

Sorry that you ran into this! It is indeed a bug in the migration which can happen when you have either in progress or failed intent insights reports at the time of the migration running.

I’ve just fixed the migration and released a new version (0.39.3). Can you please try upgrading to 0.39.3?

1 Like

hey @chdorner I am unable to update to 0.39.3, I get the following error when I try to do that

for nginx manifest for rasa/nginx:0.39.3 not found: manifest unknown: manifest unknown

I have raised this separately too here

Hi @chdorner This new version works for me ! I now have another issue with SSL but I guess it is unrelated.

2 Likes