Closed holtkamp closed 3 years ago
Hi @holtkamp , is this behaviour still occurring?
@sandervanhooft yes it does...
settlements
=> workslines
=> failssettlements,lines
=> fails@sandervanhooft any update on this, just checked and this behaviour still occurs 👀
Let me check
Hi @holtkamp ,
Can you share the specific code you're using? We cannot reproduce the issue here.
@sandervanhooft something like this:
$offset = 0;
$limit = 250;
$filters = [
'include' => 'lines',
];
/* @var Mollie_API_Client $apiClient */
$result = $apiClient->invoices->all($offset, $limit, $filters);
results in
[Mollie_API_Exception]
Error executing API call (system): Internal server error; we have been informed about this incident.
The error message suggests it is logged and the team is/will be informed, so hopefully the request can be easily identified? 😉
Note that the APIClient used OAuth2 for authentication.
Hi @holtkamp,
That code snippet really helped to pinpoint the problem on Mollie's end. Can you check if the issue has been solved now?
@sandervanhooft thanks, now it works again!
Can you share details of the cause? (always curious 😉 )
Thanks @holtkamp for following up! It seemed to have been an internal error. May have slipped in with v1 being deprecated for some time and Mollie moving forward quite fast on v2.
Specifications
Describe the issue
When loading "all" Invoices, it is allowed to "include" the (invoice)
lines
in the response: https://docs.mollie.com/reference/v1/invoices-api/get-invoice#includesTrying to do so results in:
When leaving out the
lines
value as include, this error does not occur.