-
Notifications
You must be signed in to change notification settings - Fork 256
Open
Description
This line is making request return a 504 Timeout Error when fetching reports:
opts.qs.format = 'json'; --> index.js line 2363
I'm executing this request:
curl --location 'https://quickbooks.api.intuit.com/v3/company/••••••/reports/ProfitAndLoss?start_date=2024-05-27&end_date=2025-05-27&summarize_column_by=Days&accounting_method=Accrual&minorversion=75&format=json' \
--header 'Authorization: ••••••'
and it's returning:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntuitResponse time="2025-05-27T11:42:31.710-07:00" xmlns="http://schema.intuit.com/finance/v3">
<Fault type="SERVICE">
<Error code="6002">
<Message>message=GatewayTimeout; errorCode=006002; statusCode=504</Message>
</Error>
</Fault>
</IntuitResponse>
But if I remove the &format=json param, request works just fine. I verified it with BalanceSheet report also. It might also have something to do with the amount of data the account has.
In the documentation there's no such thing as a format parameter, at least not for reports. Can we remove it for those? Or parametrize it somehow.
Also reached out quickbooks support for this, I quote:
Kindly see my sample request URL for the Class parameter. Note that there is no specific format parameter.
GET /v3/company/••••••/reports/BalanceSheet?start_date=2024-05-01&end_date=2025-05-01&summarize_column_by=Days&accounting_method=Cash&class=642331,1187177&minorversion=75
Accept type:application/json
Production Base URL:https://quickbooks.api.intuit.com/
Sandbox Base URL:https://sandbox-quickbooks.api.intuit.com/
Our gateway service will timeout if a request takes longer than 2 minutes to process.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels