Closed MarcoWel closed 7 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had any activity after being labeled as staled.
This one will be closed as soon as #328 is merged, I found a different approach which covers more edge cases than the original proposed solution.
Thanks for raising this issue and sorry if it took a while to be resolved.
Describe the bug The following code throws an error after about 4000 balance items:
Error:
Failed to retrieve balances: json: cannot unmarshal array into Go struct field BalanceTransaction._embedded.balance_transactions.context of type mollie.ContextValues exit status 1
Additional context https://github.com/VictorAvelar/mollie-api-go/blob/master/mollie/balances.go
Narrowed down the response causing the issue. First item looks good, second item is causing the error with
"context": []
: