diff --git a/lib/Requestable.js b/lib/Requestable.js index 4d6e8d9d..8a74b095 100644 --- a/lib/Requestable.js +++ b/lib/Requestable.js @@ -184,7 +184,9 @@ class Requestable { if (cb) { requestPromise.then((response) => { - if (response.data && Object.keys(response.data).length > 0) { + if (!response) { + cb(null, null, response); + } else if (response.data && Object.keys(response.data).length > 0) { // When data has results cb(null, response.data, response); } else if (config.method !== 'GET' && Object.keys(response.data).length < 1) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy