kyaj323 Posted July 4, 2022 Share Posted July 4, 2022 Not able to insert the image on the store WTPENRS22302 salesmachine.markets.prestashop.pswebservice.PrestaShopWebserviceException: Bad HTTP response : org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool Response Code : 500 thanks in advance Link to comment Share on other sites More sharing options...
reverseads Posted July 4, 2022 Share Posted July 4, 2022 500 errors are hard to trace as those doesn't get any records in the log files. It is highly probable that you don't have enough system resources on your web server. Link to comment Share on other sites More sharing options...
kyaj323 Posted July 4, 2022 Author Share Posted July 4, 2022 (edited) On 7/4/2022 at 12:57 AM, reverseads said: 500 errors are hard to trace as those doesn't get any records in the log files. It is highly probable that you don't have enough system resources on your web server. Hi Reverseads, I checked my hosting company and I am not even utilizing half the resources. we are using an api to load about 10,000+ products. It loaded most of the products but less than half the images. Any thoughts where I can start looking? Here is the full message. Didn’t realize it was partial Not able to insert the image on the store WTPSE271263 salesmachine.markets.prestashop.pswebservice.PrestaShopWebserviceException: Bad HTTP response : org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool salesmachine.markets.prestashop.pswebservice.PSWebServiceClient.executeRequest(PSWebServiceClient.java:147) salesmachine.markets.prestashop.pswebservice.PSWebServiceClient.addImg(PSWebServiceClient.java:445) salesmachine.markets.PrestashopApiIntegration.uploadImageToStore(PrestashopApiIntegration.java:1829) Thank you, -K Edited July 5, 2022 by kyaj323 (see edit history) Link to comment Share on other sites More sharing options...
kyaj323 Posted July 11, 2022 Author Share Posted July 11, 2022 Hi All, Looks like this is caused by a connection leak. Not sure if prestashop api issue or from the vendor side. Again, I am using webservice api to load 10,000 products. First 230 items loaded with images, the rest loaded the product without image. Some reference https://phillbarber.blogspot.com/2014/02/lessons-learned-from-connection-leak-in.html "We were not calling close() on the ClientResponse object which meant that the response's input stream was not being closed" anyone have any ideas? Thank you, K Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now