https://linen.dev logo
#plugins-general
Title
# plugins-general
r

rohit_amarnath

03/30/2021, 2:28 PM
I am having an issue with the salesforce tap,
Copy code
docker exec -it meltano meltano --log-level=debug invoke --dump=catalog tap-salesforce
errors out with
Copy code
meltano.cli.utils.CliError: expected str, bytes or os.PathLike object, not NoneType
Full Trace:
Copy code
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/meltano/cli/__init__.py", line 43, in main
    cli(obj={"project": None})
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/meltano/cli/params.py", line 23, in decorate
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/meltano/cli/params.py", line 57, in decorate
    func(project, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/meltano/cli/select.py", line 53, in select
    show(project, extractor, show_all=flags["all"])
  File "/usr/local/lib/python3.6/site-packages/meltano/cli/select.py", line 85, in show
    list_all = select_service.list_all(session)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/select_service.py", line 51, in list_all
    catalog = self.load_catalog(session)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/select_service.py", line 45, in load_catalog
    catalog_json = invoker.dump("catalog")
  File "/usr/local/lib/python3.6/site-packages/meltano/core/plugin_invoker.py", line 195, in dump
    with self._invoke():
  File "/usr/local/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/plugin_invoker.py", line 167, in _invoke
    with self.plugin.trigger_hooks("invoke", self, args):
  File "/usr/local/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/behavior/hookable.py", line 70, in trigger_hooks
    self.__class__.trigger(self, f"before_{hook_name}", *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/behavior/hookable.py", line 97, in trigger
    raise err
  File "/usr/local/lib/python3.6/site-packages/meltano/core/behavior/hookable.py", line 89, in trigger
    hook_func(target, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/plugin/singer/tap.py", line 214, in discover_catalog_hook
    self.discover_catalog(plugin_invoker, exec_args)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/plugin/singer/tap.py", line 255, in discover_catalog
    self.run_discovery(plugin_invoker, catalog_path)
  File "/usr/local/lib/python3.6/site-packages/meltano/core/plugin/singer/tap.py", line 280, in run_discovery
    universal_newlines=True,
  File "/usr/local/lib/python3.6/site-packages/meltano/core/plugin_invoker.py", line 183, in invoke
    return subprocess.Popen(popen_args, **popen_options, env=popen_env)
  File "/usr/local/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.6/subprocess.py", line 1275, in _execute_child
    env_list.append(k + b'=' + os.fsencode(v))
  File "/usr/local/lib/python3.6/os.py", line 800, in fsencode
    filename = fspath(filename)  # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not NoneType