a year ago
tengo una aplicacion en django que utiliza muchas peticiones y webhooks mediante api de woocommerce. algunos dias me tira este error
File "/opt/venv/lib/python3.11/site-packages/requests/adapters.py", line 553, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='calzadospaola.cl', port=443): Max retries exceeded with url: /wp-json/wc/v3/orders?search=&perpage=10&page=1&fields=id%2Cstatus%2Cbilling%2Cdatecreated%2Ccustomer_note (Caused by ConnectTimeoutError(, 'Connection to calzadospaola.cl timed out. (connect timeout=10)'))
Lo mas raro es que cuando ejecuto este mismo metodo en mi app local funciona sin problemas, que puedo hacer?
0 Replies
a year ago
please use English if possible
I have an application in Django that uses many requests and webhooks through the woocommerce api. some days I get this error
File "/opt/venv/lib/python3.11/site-packages/requests/adapters.py", line 553, in submission
increase ConnectTimeout(e, request = request)
request.exceptions.ConnectTimeout: HTTPSConnectionPool(host='calzadospaola.cl', port=443): Maximum number of retries exceeded with url: /wp-json/wc/v3/orders?search=&perpage=10&page=1&fields=id% 2Cstatus% 2Cbilling%2Cdatecreated%2Ccustomer_note (Caused by ConnectTimeoutError(, 'Connection to ropaspaola.cl. timed out (connection timeout=10)'))
The strangest thing is that when I run this same method in my local application it works without problems, what can I do?
a year ago
looks like it's possible WooCommerce is blocking your connection when deployed to railway
a year ago
you would need to get in contact with them, as this wouldn't be related to railway's platform or product
a year ago
I understand how it may look at the surface, but I assure you, railway does not block any outgoing requests for any reason.
but it has nothing to do with rail server, any possibility to adjust the wait time on the server
a year ago
that would be something you would need to do in your code
@javieraraya5573 have you fixed this? if so, could you tell me how? (if you want I can send you a message, I speak Spanish as well)
it looks like a rate limit, because it's working fine again without any change from my side <:thinkies:1238577143466692739>