Unable to aend POST request
Hey i am trying to send a POST request to an external API from my flask application in the UI i am getting this error. Application error: a client side exception had occurred. When i check the logs i am getting this error
Thanks in advance
7 Replies
Project ID:
N/A
Someone else had this exact same issue earlier, could I take a look at your repo? Pretty good looking code imo, nothing stands out to me. If you wanted to provide me with a minimal reproducible example id be happy to debug it. Are you sure you're requesting with the HTTPS scheme?
⚠️ experimental feature
N/A
terminated due to signal 9
This is usually due to running out of memory or compute taking too long. Tweaking the gunicorn's worker count might help if it's a compute issue. Do you know how much RAM your app is using, and are you doing any computationally-intensive tasks?you can add the flag
--timeout 0
to disable timeouts, but you should really fix the underlying slow code tbhIt's nothing actually i am sending some files to an external API. It works fine in my local machine but here it is giving the above error. Actually it was working fine until yesterday.
Right i will look into it. Thanks 👍
Also there is another thing i wanted to ask when using in my laptop this POST request was not going through. When I tried to access the website from my mobile it was unable to access my website. So this got me thinking if the website is working only with a blocking single thread. How do i increase my thread count and make it asynchronous in railway
add more workers / threads
https://medium.com/building-the-system/gunicorn-3-means-of-concurrency-efbb547674b7