Description of Changes
I encountered issues while generating invoice PDFs using the QuickBooks API. During debugging, I discovered that the authResponse was null because there was no JSON present in the response. However, the Buffer file for the PDF was present in the body field.
Proposed Solution
To address this, I propose adding a check for the body field in the makeApiCall method if authResponse.json is null. This will ensure that the authResponse still sends the data back, allowing users to generate the PDF even if the JSON is null.
Description of Changes I encountered issues while generating invoice PDFs using the QuickBooks API. During debugging, I discovered that the authResponse was null because there was no JSON present in the response. However, the Buffer file for the PDF was present in the body field.
Proposed Solution To address this, I propose adding a check for the body field in the makeApiCall method if authResponse.json is null. This will ensure that the authResponse still sends the data back, allowing users to generate the PDF even if the JSON is null.