Skip to content
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

LDAP User Ingestion fails #3077

Closed
ulixius9 opened this issue Mar 2, 2022 · 0 comments · Fixed by #3079
Closed

LDAP User Ingestion fails #3077

ulixius9 opened this issue Mar 2, 2022 · 0 comments · Fixed by #3079
Assignees

Comments

@ulixius9
Copy link
Member

ulixius9 commented Mar 2, 2022

Affected module
Ingestion Framework

Describe the bug
Getting following error while ingesting ldap

Traceback (most recent call last):
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/bin/metadata", line 8, in <module>
    sys.exit(metadata())
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/cmd.py", line 89, in ingest
    workflow.execute()
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/api/workflow.py", line 153, in execute
    for record in self.source.next_record():
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/ldap_users.py", line 87, in next_record
    user_metadata = CreateUserRequest(
  File "pydantic/main.py", line 331, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 3 validation errors for CreateUserRequest
name -> __root__
  str type expected (type=type_error.str)
displayName
  str type expected (type=type_error.str)
email -> __root__
  str type expected (type=type_error.str)
@ulixius9 ulixius9 self-assigned this Mar 2, 2022
@ulixius9 ulixius9 added this to To do in Release 0.9.0 via automation Mar 2, 2022
@ulixius9 ulixius9 added this to the Milestone 5 - 0.9.0 Release milestone Mar 2, 2022
ulixius9 added a commit to ulixius9/OpenMetadata that referenced this issue Mar 2, 2022
Release 0.9.0 automation moved this from To do to Done Mar 3, 2022
ayush-shah pushed a commit that referenced this issue Mar 3, 2022
* fix #3077: fixed validation error

* removed print

* changes returntype to OMetaUserProfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant