Skip to content

fix: deleted users in Notion workspace #4

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

Merged
merged 5 commits into from
Jul 15, 2025
Merged

fix: deleted users in Notion workspace #4

merged 5 commits into from
Jul 15, 2025

Conversation

joscha
Copy link
Member

@joscha joscha commented Jul 15, 2025

For:

  Unable to extract tag using discriminator 'type' [type=union_tag_not_found, input_value={'object': 'user', 'id': ...81cf-a9db-0002d5695b14'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/union_tag_not_found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/nix/store/3x13dv76kxw9qzdkh1443wfg33gds8wk-python3-3.12.11-env/lib/python3.12/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/joscha/dev/dlt-source-notion/.devenv/state/venv/lib/python3.12/site-packages/dlt/extract/utils.py", line 255, in _parallel_gen
    return next(gen)  # type: ignore[call-overload]
           ^^^^^^^^^
  File "/Users/joscha/dev/dlt-source-notion/dlt_source_notion/__init__.py", line 219, in database_resource
    for pages in iterate_paginated_api(client.databases.query, database_id=database_id):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/joscha/dev/dlt-source-notion/dlt_source_notion/__init__.py", line 82, in iterate_paginated_api
    response = function(**kwargs, start_cursor=next_cursor)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/joscha/dev/dlt-source-notion/.devenv/state/venv/lib/python3.12/site-packages/pydantic_api/notion/sdk/endpoints/databases.py", line 100, in query
    return self._validate_response(raw_resp, QueryDatabaseResponse)

needs:

@joscha joscha changed the title fix: db issue fix: deleted users in Notion workspace Jul 15, 2025
@joscha joscha enabled auto-merge July 15, 2025 15:42
@joscha joscha merged commit 4566fb3 into main Jul 15, 2025
8 checks passed
@joscha joscha deleted the joscha/fix-db-issue branch July 15, 2025 19:18
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 this pull request may close these issues.

1 participant