Hello. I’m having trouble connecting Mode as a sou...
# troubleshoot
r
Hello. I’m having trouble connecting Mode as a source. I’m using the documentation, but I keep getting strange errors. I’m not sure what mistakes I might be making in the configuration. Is there a more complete example I could use to match?
πŸ“– 1
πŸ” 1
l
Hey there πŸ‘‹ I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: βœ… There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? βœ… button βœ… It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? βœ… button Did you find a solution to your issue? ❌ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react βœ… to your original message to let us know!
a
Hi, could you share a recipe and any logs from the ingestion- as well as specific errors/stack traces?
r
Hi @astonishing-answer-96712! Thanks so much for taking a look!! My recipe is the following.
Copy code
source:
  type: mode
  config:
    # Coordinates
    connect_uri: http://app.mode.com

    # Credentials
    token: ${mode_token}
    password: ${mode_password}

    # Options
    workspace: ${workspace}
    owner_username_instead_of_email: False
    api_options:
      retry_backoff_multiplier: 2
      max_retry_interval: 10
      max_attempts: 5
Then these are the first few lines of the log. It continues for a few dozen lines, but I think it’s all due to the
Failed to find a registered source for type mode: 'str' object is not callable
.
Copy code
~~~~ Ingestion Logs ~~~~
Obtaining venv creation lock...
Acquired venv creation lock
venv setup time = 0
This version of datahub supports report-to functionality
datahub  ingest run -c /tmp/datahub/ingest/b7361313-560f-4e40-b446-f874ce2b5636/recipe.yml --report-to /tmp/datahub/ingest/b7361313-560f-4e40-b446-f874ce2b5636/ingestion_report.json
[2023-05-04 18:40:14,290] INFO     {datahub.cli.ingest_cli:173} - DataHub CLI version: 0.10.2
[2023-05-04 18:40:14,323] INFO     {datahub.ingestion.run.pipeline:204} - Sink configured successfully. DataHubRestEmitter: configured to talk to http://datahub-gms:8080
[2023-05-04 18:40:14,517] ERROR    {datahub.entrypoints:195} - Command failed: Failed to find a registered source for type mode: 'str' object is not callable
Traceback (most recent call last):
  File "/tmp/datahub/ingest/venv-mode-0.10.2/lib/python3.10/site-packages/datahub/ingestion/run/pipeline.py", line 119, in _add_init_error_context
    yield
  File "/tmp/datahub/ingest/venv-mode-0.10.2/lib/python3.10/site-packages/datahub/ingestion/run/pipeline.py", line 214, in __init__
    source_class = source_registry.get(source_type)
  File "/tmp/datahub/ingest/venv-mode-0.10.2/lib/python3.10/site-packages/datahub/ingestion/api/registry.py", line 173, in get
Any ideas? This would be a massive help if I could get this working by Monday πŸ™
a
Hi there, did you get this figured out? Thanks for being patient- we have a lot of traffic for community support!
r
Unfortunately not yet πŸ˜”
Any suggestions? πŸ‘€