Hi all, I try to connect a rest-api with the extr...
# troubleshooting
s
Hi all, I try to connect a rest-api with the extractor tap_rest_api_msdk. I get this error. Operator '__else__=None' was not found. Unmapped streams will be included in output. Could you help me?
Copy code
time=2022-04-29 11:12:57 name=tap-rest-api-msdk level=INFO message=tap-rest-api-msdk v1.0.0, Meltano SDK v0.3.18)
time=2022-04-29 11:12:57 name=tap-rest-api-msdk level=INFO message=Skipping parse of env var settings...
time=2022-04-29 11:12:57 name=tap-rest-api-msdk level=INFO message=Config validation passed with 0 errors and 0 warnings.
time=2022-04-29 11:12:57 name=root level=INFO message=Operator '__else__=None' was not found. Unmapped streams will be included in output.
Traceback (most recent call last):
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/bin/tap-rest-api-msdk", line 8, in <module>
    sys.exit(TapRestApiMsdk.cli())
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 442, in cli
    tap = cls(  # type: ignore  # Ignore 'type not callable'
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 83, in __init__
    self.input_catalog or self._singer_catalog
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 219, in _singer_catalog
    for stream in self.streams.values()
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 109, in streams
    for stream in self.load_streams():
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 248, in load_streams
    for stream in self.discover_streams():
  File "/project/.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.8/site-packages/tap_rest_api_msdk/tap.py", line 184, in discover_streams
    for stream in self.config["streams"]:
KeyError: 'streams'
t
I don't think the "else = None" message is an error... it's just telling you that for streams with no mapper it's going to pass the stream through (which is usually what you want).
Have you run with
--log-leve=debug
to see if you can get more info about the stack trace? How are you executing the pipeline - meltano run or meltano elt? What does your config look like?
e
I think the tap's config is missing the
streams
setting value
s
That is true, thank you both for the fast reply. I'll add these.