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

Datahose config: disabling datafeed in yml causes a NoneType error #340

Open
Alex-Nalin opened this issue Mar 21, 2024 · 0 comments
Open

Comments

@Alex-Nalin
Copy link

Bug Report

Steps to Reproduce:

Use the following in config.yml:

datafeed:
enabled: false

datahose:
enabled: true
tag: fancyTag # optional tag that will be used when creating or reusing a datahose feed
eventTypes: # mandatory field, events you want to receive
- MESSAGESENT

Expected Result:

The datahose should be used going forward

Actual Result:

Logs shows this trace:

Traceback (most recent call last):
File "C:\Users\Alex.Nalin\PycharmProjects\SFDC-FED-NWI\main.py", line 728, in
asyncio.run(run())
File "C:\Users\Alex.Nalin\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Alex.Nalin\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\Alex.Nalin\PycharmProjects\SFDC-FED-NWI\main.py", line 53, in run
async with SymphonyBdk(config) as bdk:
File "C:\Users\Alex.Nalin\AppData\Local\Programs\Python\Python310\lib\site-packages\symphony\bdk\core\symphony_bdk.py", line 102, in init
self._initialize_bot_services()
File "C:\Users\Alex.Nalin\AppData\Local\Programs\Python\Python310\lib\site-packages\symphony\bdk\core\symphony_bdk.py", line 117, in _initialize_bot_services
self._datafeed_loop = self._service_factory.get_datafeed_loop()
File "C:\Users\Alex.Nalin\AppData\Local\Programs\Python\Python310\lib\site-packages\symphony\bdk\core\service_factory.py", line 156, in get_datafeed_loop
if df_version.lower() == DatafeedVersion.V1.value.lower():
AttributeError: 'NoneType' object has no attribute 'lower'

Environment:

This issue occurs on all deployment, locally, via docker, on GKE...

Additional Context:

If removing the datafeed part and leaving the config.yml as below, then no error:

datahose:
enabled: true
tag: fancyTag # optional tag that will be used when creating or reusing a datahose feed
eventTypes: # mandatory field, events you want to receive
- MESSAGESENT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant