Skip to content

Catch ValueError when initialising SQLTrackerStore and re-raise as RasaException #10673

Closed
@sentry-io

Description

Sentry Issue: RASA-OPEN-SOURCE-FR1

ValueError: invalid literal for int() with base 10: '$DB_PORT'
(12 additional frame(s) were not displayed)
...
  File "rasa/core/run.py", line 255, in load_agent_on_start
    _tracker_store = TrackerStore.create(endpoints.tracker_store, event_broker=_broker)
  File "rasa/core/tracker_store.py", line 124, in create
    return _create_from_endpoint_config(obj, domain, event_broker)
  File "rasa/core/tracker_store.py", line 1269, in _create_from_endpoint_config
    **endpoint_config.kwargs,
  File "rasa/core/tracker_store.py", line 860, in __init__
    dialect, host, port, db, username, password, login_db, query
  File "rasa/core/tracker_store.py", line 953, in get_db_url
    query=query,

Definition of Done:

  • implement try/except block for casting port to integer, otherwise raise RasaException

Metadata

Assignees

Labels

area:rasa-oss 🎡Anything related to the open source Rasa frameworkeffort:atom-squad/1Label which is used by the Rasa Atom squad to do internal estimation of task sizes.tool:sentrytype:bug 🐛Inconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions