gouline/dbt-metabase

"visibility_type":"value may be nil, or if non-nil, value must be one of: `cruft`, `hidden`, `technical`."

willbryant opened this issue · 0 comments

ERROR    HTTP request failed. Payload: {'display_name': None, 'description': 'My description here.', 'visibility_type': 'normal'}.        metabase.py:885
         Response: {"errors":{"visibility_type":"value may be nil, or if non-nil, value must be one of: `cruft`, `hidden`, `technical`."}}                                                      
Traceback (most recent call last):
  File "/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin/dbt-metabase", line 4, in <module>
    __import__('pkg_resources').run_script('dbt-metabase==0.9.1.dev1+g68f584e', 'dbt-metabase')
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 672, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1479, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/EGG-INFO/scripts/dbt-metabase", line 5, in <module>
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/dbtmetabase/__init__.py", line 754, in main
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/dbtmetabase/__init__.py", line 127, in invoke
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/dbtmetabase/__init__.py", line 288, in wrapper
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/dbtmetabase/__init__.py", line 624, in models
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/dbtmetabase/metabase.py", line 216, in export_models
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/dbtmetabase/metabase.py", line 268, in export_model
  File "/usr/local/lib/python3.9/site-packages/dbt_metabase-0.9.1.dev1+g68f584e-py3.9.egg/dbtmetabase/metabase.py", line 880, in api
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 1022, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:3000/api/table/10