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

KeyError when running --about #5

Open
pnadolny13 opened this issue Dec 2, 2022 · 0 comments · May be fixed by #6
Open

KeyError when running --about #5

pnadolny13 opened this issue Dec 2, 2022 · 0 comments · May be fixed by #6

Comments

@pnadolny13
Copy link

When I ran meltano invoke tap-datadog --about --format=json I'm getting an error because I dont have any configs set. Is there a way to use a .get() instead or not access configs for non-sync workflows like about/discovery?

Traceback (most recent call last):
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/bin/tap-datadog", line 8, in <module>
    sys.exit(cli())
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/singer_sdk/tap_base.py", line 460, in cli
    tap = cls(  # type: ignore  # Ignore 'type not callable'
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/singer_sdk/tap_base.py", line 82, in __init__
    self.input_catalog or self._singer_catalog
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/singer_sdk/tap_base.py", line 218, in _singer_catalog
    for stream in self.streams.values()
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/singer_sdk/tap_base.py", line 108, in streams
    for stream in self.load_streams():
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/singer_sdk/tap_base.py", line 247, in load_streams
    for stream in self.discover_streams():
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/tap_datadog/tap.py", line 41, in discover_streams
    streams =  [stream_class(tap=self) for stream_class in STREAM_TYPES]
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/tap_datadog/tap.py", line 41, in <listcomp>
    streams =  [stream_class(tap=self) for stream_class in STREAM_TYPES]
  File "/Users/pnadolny/Documents/Git/GitHub/pnadolny/hub-utils/hub_utils/test_meltano_project/.meltano/extractors/tap-datadog/venv/lib/python3.9/site-packages/tap_datadog/streams.py", line 87, in __init__
    self.configuration_start_date = self.config["start_date"]
KeyError: 'start_date'
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

Successfully merging a pull request may close this issue.

1 participant