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

client.meeting.update returning "Request body should be a valid JSON object" #258

Open
pinkmanJ opened this issue Feb 23, 2022 · 0 comments

Comments

@pinkmanJ
Copy link

pinkmanJ commented Feb 23, 2022

Here is what my method looks like that is calling client.meeting.update()

def update_meeting_topic(booking):
    client = get_zoom_client()

    if not booking.zoom_meeting_id:
        logger.error(f'Unable to get meeting for booking id = {booking.id} -- zoom meeting ID not set?')
        return

    # NOTE: This method is set up exactly the same as Zoomus .create and .get but I am getting this error
    # 'Request Body should be a valid JSON object'
    # everything looks exactly the same. I can't figure out why it's not liking the request.body?

    resp = client.meeting.update(
        id=booking.zoom_meeting_id,
        topic=booking.event_title, # this is a string
    )

    if resp.status_code != 204:
        logger.error(f'Unable to update meeting. Status code -> {resp.status_code}')
        return

Here is the response I am getting back along with what the request looks like. The request body appears to be valid JSON to me?

image

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

1 participant