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
We have an issue since we upgraded from 2.12.0 to 3.6.0. Sometimes we get the said error when receiving a mollie webhook and the error happens exactly when we try to fetch the related payment with client.payments.get(payment_id). We cannot find any similarities between the requests involved and it also happens at different times but not each time but each time at the same point I mentioned above. Our Python version was upgraded from 3.7 to 3.10.
RequestError: Unable to communicate with Mollie: HTTPSConnectionPool(host='api.mollie.com', port=443): Max retries exceeded with url: /v2/payments/tr_xxx (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.mollie.com', port=443): Read timed out. (read timeout=5)"))
File "xyy", line 512, in fetch_payment
return client.payments.get(payment_id)
File "mollie/api/resources/payments.py", line 44, in get
return super().get(resource_id, **params)
File "mollie/api/resources/base.py", line 97, in get
result = self.perform_api_call(self.REST_READ, path, params=params)
File "mollie/api/resources/base.py", line 42, in perform_api_call
resp = self.client.perform_http_call(http_method, path, data, params, idempotency_key)
File "mollie/api/client.py", line 276, in perform_http_call
return self._perform_http_call_apikey(
File "mollie/api/client.py", line 227, in _perform_http_call_apikey
raise RequestError(f"Unable to communicate with Mollie: {err}")
This has since been fixed for @sommejan. It was related to the Azure setup and how Azure handles timeouts. Instantiating the client for each request resolves the issue.
We have an issue since we upgraded from 2.12.0 to 3.6.0. Sometimes we get the said error when receiving a mollie webhook and the error happens exactly when we try to fetch the related payment with
client.payments.get(payment_id)
. We cannot find any similarities between the requests involved and it also happens at different times but not each time but each time at the same point I mentioned above. Our Python version was upgraded from 3.7 to 3.10.Originally posted by @sommejan in #339 (comment)
The text was updated successfully, but these errors were encountered: