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

add_meeting_registrant results in RegistrantConfirmation error #148

Open
gpe5280 opened this issue Mar 13, 2023 · 1 comment
Open

add_meeting_registrant results in RegistrantConfirmation error #148

gpe5280 opened this issue Mar 13, 2023 · 1 comment

Comments

@gpe5280
Copy link

gpe5280 commented Mar 13, 2023

From the command line:

$ python
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyzoom import ZoomClient
>>> client = ZoomClient(ZM_KEY, ZM_SECRET)
>>> client.meetings.add_meeting_registrant(XXXXXXX, first_name='John', last_name='Public', email='[email protected]', job_title='Boss')

The following error occurs, however, the registrant is added to the meeting roster.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/websites/domains/stoicagilist.com/system/lib/python3.10/site-packages/pyzoom/_client.py", line 121, in add_meeting_registrant
    return schemas.RegistrantConfirmation(
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for RegistrantConfirmation
join_url
  field required (type=value_error.missing)

I tried adding the join url to the parameter list (join_url='https://us02web.zoom.us/j/XXXX?pwd=XXXX'), since it is different from the registration url, but the result was the same.

(PS. Thank you for this excellent library. It has saved me hours of coding!)

Edited to add information...

As I worked to add more functionality to my project, specifically add_and_confirm_registrant, this error became more problematic. The "fix" for me so far has been to change the following code in schemas.py:

class RegistrantConfirmation(MyZoomBase):
    registrant_id: str
    id: int
    topic: str
    start_time: str
    join_url: str

To:

class RegistrantConfirmation(MyZoomBase):
    registrant_id: str
    id: int
    topic: str
    start_time: str
    join_url: Optional[str]

Without this change I was able to add a registrant, but could not approve them programmatically.

@licht1stein
Copy link
Owner

Please make a PR with the fix!

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

No branches or pull requests

2 participants