We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b0aa5 commit e6883ebCopy full SHA for e6883eb
lib/automation_client.js
@@ -361,7 +361,7 @@ AutomationApiClient.prototype.updateSessionById = function(
361
* Checking validity of requestBody payload.
362
* @return {Error|null}
363
*/
364
- if(typeof requestBody === "object") {
+ if(requestBody === null || requestBody === undefined) {
365
throw new Error("It's look like your requestBody Payload is Invalid");
366
}
367
if(typeof fnCallback === "function") {
0 commit comments