Help with Api methods in django
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=&per_page=10&page=1&fields=id%2Cstatus%2Cbilling%2Cdate_created%2Ccustomer_note (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f810bd74d90>, '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?
13 Replies
Project ID:
N/A
N/A
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=&per_page=10&page=1&fields=id% 2Cstatus% 2Cbilling%2Cdate_created%2Ccustomer_note (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSOconnection object at 0x7f810bd74d90>, '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?
looks like it's possible WooCommerce is blocking your connection when deployed to railway
yes
you would need to get in contact with them, as this wouldn't be related to railway's platform or product
mmm
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
that would be something you would need to do in your code
ok i try to find out
thank u
@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: