You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I query the API at /api/accounts?page_size=500&page=1&search_keyword=MyAccount it will return data IF the account is NOT a subaccount. I have not found a way to query subaccounts with the API. I get the following error.
Array
(
[error] => HTTP status code 500 was received
[rawResponse] => {"status_code":500,"error":"Internal Server Error","message":"An internal server error occurred","stack":"TypeError: Cannot read properties of undefined (reading 'children')\n at /app/packages/server/build/index.js:138464:31\n at Array.forEach (<anonymous>)\n at Object.flatToNestedArray (/app/packages/server/build/index.js:138458:10)\n at AccountTransformer.postCollectionTransform (/app/packages/server/build/index.js:43265:41)\n at Transformer.work (/app/packages/server/build/index.js:26058:29)\n at TransformerInjectable.transform (/app/packages/server/build/index.js:26249:28)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GetAccounts.getAccountsList (/app/packages/server/build/index.js:44471:41)\n at async AccountsController.getAccountsList (/app/packages/server/build/index.js:399:46)"}
)
I was able to confirm by unchecking "Subaccount" on the account and saving. The API call was then successful.
The text was updated successfully, but these errors were encountered:
When I query the API at /api/accounts?page_size=500&page=1&search_keyword=MyAccount it will return data IF the account is NOT a subaccount. I have not found a way to query subaccounts with the API. I get the following error.
I was able to confirm by unchecking "Subaccount" on the account and saving. The API call was then successful.
The text was updated successfully, but these errors were encountered: