# Intermittently getting Request body should be a valid JSON object

**URL:** <https://devforum.zoom.us/t/intermittently-getting-request-body-should-be-a-valid-json-object/81635>\
**Category:** API and Webhooks\
**Created:** [January 18, 2023, 2:15pm UTC](https://devforum.zoom.us/t/intermittently-getting-request-body-should-be-a-valid-json-object/81635 "2023-01-18T14:15:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rich](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich/32/1029_2.png) [@rich](https://devforum.zoom.us/u/rich)\
**Post date:** [January 18, 2023, 2:15pm UTC](https://devforum.zoom.us/t/intermittently-getting-request-body-should-be-a-valid-json-object/81635/1 "2023-01-18T14:15:45Z")

</div>

Hi

so I’ve had a look at some of the existing forum answers for this error and I can see quite a few have resolved although I’m not sure this is the same as what is going on with our website.

On booking a meeting ( endpoint /users/userId/meetings) I sometimes get this error

2023-01-17 13:01:33: Raw Response :‘\<?xml version="1.0" encoding="UTF-8" standalone="yes"?\>`300`Request Body should be a valid JSON object.’  
2023-01-17 13:01:33: HTTP Status Code : 400

It doesn’t happen every time, and usually, if the user refreshes the page and resubmits the form ( and therefore the json data) it goes through ok.

here’s how the JSON looks that is posted - example meeting

{  
“userId”: “H2w0QD84SiWkDD-xewANHw”,  
“topic”: “Testing Email Notification”,  
“agenda”: “

Quick test of emails to hotmail accounts

”,  
“start\_time”: “2023-01-18T12:00:00”,  
“duration”: 5,  
“type”: 2,  
“timezone”: “Europe/London”,  
“password”: “\*\*\*\*\*\*\*\*”,  
“settings”: {  
“approval\_type”: 0,  
“registration\_type”: 1,  
“registrants\_confirmation\_email”: false,  
“registrants\_email\_notification”: false  
}  
}

I’ve pasted this into [jsonlint.com](http://jsonlint.com) and it comes back valid every time - although this is not what was posted when the error occurred - I’m going to try and trap the json next time the error happens.

I see in some posts developers are declaring data types - should I be doing that ? Just strikes me as odd because this error is intermittent.

thanks

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [January 18, 2023, 4:49pm UTC](https://devforum.zoom.us/t/intermittently-getting-request-body-should-be-a-valid-json-object/81635/2 "2023-01-18T16:49:15Z")

</div>

@rich Hope you will be fine.

Please verify if is there any payload section that is needed as a collection `[]` and you are passing as the object `{}`.

Here 👇 are the sessions regarding how to schedule meetings using REST API

→ [Create Zoom Meeting - (REST API)](https://youtu.be/4wPWajTEjxE)  
→ [How to Create password less Zoom Meeting -(REST API)](https://youtu.be/T6DGDgwetr8)  
→ [How to Enable Zoom Meeting Registration - (REST API)](https://youtu.be/yYu2NcMx5aA)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 22, 2024, 8:25am UTC](https://devforum.zoom.us/t/intermittently-getting-request-body-should-be-a-valid-json-object/81635/3 "2024-01-22T08:25:28Z")

</div>

Closed on January 22, 2024, 8:25am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
