mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
552 stars 191 forks source link

Open settlement endpoint times out #530

Closed sweebee closed 2 years ago

sweebee commented 3 years ago

Specifications

Describe the issue

I'm getting a time-out on the settlements open endpoint settlements()->open(). (after more than 60 seconds).

I only have this on a Mollie account with more than 2500 transactions in the last 24h. I know this might be a bug in the API but I'm posting it here since there are probably devs from Mollie here :)

sandervanhooft commented 3 years ago

@MollieRick ?

sweebee commented 3 years ago

Did some more diggin. By doing a request via Postman I get 10 seconds:

Schermafbeelding 2021-02-11 om 20 51 09

By doing the same with the Mollie PHP API (Mollie\Laravel\Facades\Mollie) I get 75 seconds:

Schermafbeelding 2021-02-11 om 21 04 22
sandervanhooft commented 3 years ago

That call to the settlement endpoint is exactly the same across the Laravel / PHP clients, I don't think that's causing any (additional) performance issues here.

sandervanhooft commented 3 years ago

@leonardogcsoares any update on this?

leonardogcsoares commented 3 years ago

Hi Sander. This is a known problem and we are still looking into the best way to mitigate/accelerate it for the future. Unfortunately, I have no updates at this time but will push the urgency on with the appropriate parties involved.

sandervanhooft commented 3 years ago

Thanks @leonardogcsoares !

sandervanhooft commented 3 years ago

@sweebee is this problem still occurring for you?

sweebee commented 3 years ago

@sweebee is this problem still occurring for you?

Haven’t checked lately. Currently on vacation. Will check it next week.

sandervanhooft commented 3 years ago

Thanks @sweebee ! Enjoy! 🏖️

sweebee commented 3 years ago

Did some "long term" testing and today i got my first error (internal server error):

GuzzleHttp\Exception\ServerException: Server error: GET https://api.mollie.com/v2/settlements/open resulted in a 500 Internal Server Error response: {"status":500,"title":"Internal Server Error","detail":"Internal Server Error","_links":{"apiStatus":{"href":"https://st (truncated...)

sandervanhooft commented 3 years ago

@leonardogcsoares can you take a peak?

sandervanhooft commented 2 years ago

Closing this for now, let me know if it should be reopened.