Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: invalid literal for int() with base 10 #8309

Closed
sentry-io bot opened this issue Mar 26, 2021 · 2 comments
Closed

ValueError: invalid literal for int() with base 10 #8309

sentry-io bot opened this issue Mar 26, 2021 · 2 comments
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework stale tool:sentry type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 26, 2021

Sentry Issue: RASA-OPEN-SOURCE-7D4

Stack Trace

ValueError: invalid literal for int() with base 10: '5672/rasa:5672'
(22 additional frame(s) were not displayed)
...
  File "rasa/core/brokers/broker.py", line 74, in _create_from_endpoint_config
    broker = await PikaEventBroker.from_endpoint_config(endpoint_config, event_loop)
  File "rasa/core/brokers/pika.py", line 138, in from_endpoint_config
    await broker.connect()
  File "rasa/core/brokers/pika.py", line 144, in connect
    self._connection = await self._connect()
  File "rasa/core/brokers/pika.py", line 188, in _connect
    raise last_exception
  File "rasa/core/brokers/pika.py", line 174, in _connect
    ssl_options=ssl_options,

Further Information

  • Based on the python docs and this page, it looks like the argument passed in the int() function is not one of the expected types.
  • Looking at the stacktrace from sentry maybe the int() function it refers to is this one

Potential Solutions

  • Add a check in the code which checks if the port is one of the expected types. If it's not, throw a RasaException with a helpful error message.
@Imod7 Imod7 added area:rasa-oss 🎡 Anything related to the open source Rasa framework tool:sentry type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Mar 26, 2021
@Imod7 Imod7 changed the title ValueError: invalid literal for int() with base 10: '5672/rasa:5672' ValueError: invalid literal for int() with base 10 Mar 26, 2021
@stale
Copy link

stale bot commented Jul 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 21, 2021
@wochinge
Copy link
Contributor

wochinge commented Nov 8, 2021

fixed by #8575

@wochinge wochinge closed this as completed Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework stale tool:sentry type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

2 participants