Skip to content

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

@pinkmanJ

Description

@pinkmanJ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions