mangopay2-php-sdk icon indicating copy to clipboard operation
mangopay2-php-sdk copied to clipboard

Timeout issues on some SDK calls

Open mickaelpois opened this issue 7 years ago • 18 comments

Some PHP SDK users are always complaining about random timeouts when calling our services.

Most of time, calls has been successfully received by our servers and Payins, Transferts, Payouts, etc. are well processed.

We will try in the following months to find some ways to enhance this, avoiding extra manual checks to ensure call has been done safely.

mickaelpois avatar Nov 28 '18 09:11 mickaelpois

Hi,

I think I was one of the main reporters on this issue. This still occurs for us. Is there any progress on this? Is this happening only using the php-sdk?

I am ready to use our environment for additional debugging if required.

iammichiel avatar Feb 20 '19 08:02 iammichiel

@mickaelpois I believe this is not an issue anymore. Can you take a look?

SoloJr avatar Apr 13 '20 07:04 SoloJr

Hi @iammichiel, Indeed in certain very isolated periods the API responses (this is independent of the SDK) have experienced slowdowns, we actively monitor and inform our user base of issues of this kind. At the moment the responses speeds are fully operational and compliant. For info, the timeout periods in this SDK are of 30secs for connection, and 80s for responses. Cheers, Max

mangomaxoasis avatar Jun 15 '20 11:06 mangomaxoasis

Just for you info, we experienced another timeout last week :

More precisely : Jun 11, 2020 7:27:03 AM UTC When calling :

$mangoUser = $this->mango->Users->Get($user->getMangoId());

Might not want to consider this as closed.

iammichiel avatar Jun 16 '20 13:06 iammichiel

Hi @iammichiel, I'll investigate this, to confirm it was one occurence at Jun 11, 2020 7:27:03 AM UTC ?

mangomaxoasis avatar Jun 16 '20 14:06 mangomaxoasis

Yes, we had only one occurence of the timeout over the last 7 days. The logs do not go further. I will let you know if this occurs again.

iammichiel avatar Jun 17 '20 07:06 iammichiel

Thanks @iammichiel !

mangomaxoasis avatar Jun 25 '20 12:06 mangomaxoasis

We just experienced another timeout :

$cardRegistration = $mangoPayApi->CardRegistrations->Get($cardId);

Jun 30, 2020 9:28:13 AM UTC

iammichiel avatar Jun 30 '20 09:06 iammichiel

Hi @iammichiel we're looking into it

mangomaxoasis avatar Jun 30 '20 09:06 mangomaxoasis

@iammichiel is his happening on staging, or production?

catacraciun avatar Jun 30 '20 09:06 catacraciun

@iammichiel also, can you confirm the version of the SDK?

mangomaxoasis avatar Jun 30 '20 09:06 mangomaxoasis

I wouldn't bother you if this happened on staging. :) This is a production issue.

We are using the 3.0.0 version of the SDK, but this has been the case for a couple of months, meaning, it also occurred using the 2.x version of the SDK.

If this has any value for you, our env making those calls is hosted on AWS in the eu-west-region (Ireland).

I'll add I was convinced at first, it had something to do with the Rate-limiting but I can confirm that we were very far from the Rate-limit when this timeout occured.

iammichiel avatar Jun 30 '20 12:06 iammichiel

And another timeout : Jul 4, 2020 9:02:00 AM UTC.

iammichiel avatar Jul 07 '20 08:07 iammichiel

And another timeout this morning : Jul 22, 2020 7:09:37 AM UTC

iammichiel avatar Jul 22 '20 07:07 iammichiel

Hi @iammichiel We are still having trouble isolating this issue, would you be free for a quick call so we can better understand the situation?

mangomaxoasis avatar Jul 22 '20 07:07 mangomaxoasis

Yeah, sure. Perhaps, we can switch to a email to setup that call ? You can contact me at michiel at ouistock dot fr.

iammichiel avatar Jul 22 '20 13:07 iammichiel

Hi @iammichiel mail sent, let me know if you don't receive it Max

mangomaxoasis avatar Jul 27 '20 08:07 mangomaxoasis

Happy to see this has been reported by others. We are also experiencing the same from time to time. It can be sporadic with just one timeout or can also last for multiple requests 10-20 feeling like an outage.

I have been in talks with the support to provide specific api calls that failed and will revert if we get any more information. It seems that mangopay responds with 200 but not under 30 seconds.

spiritinlife avatar Apr 17 '24 15:04 spiritinlife