IO error during HTTP execution for URL

Hello Everyone,
I stored a file in the Minio and when i am trying to access it by its URL in the OCR Plugin, i am getting this error : IO error during HTTP execution for URL: http://localhost:15110/public/capture.png

Full Description of error:
org.webharvest.exception.HttpException: IO error during HTTP execution for URL: http://localhost:15110/public/capture.png
at org.webharvest.runtime.web.HttpClientManager.execute(HttpClientManager.java:224)
at org.webharvest.runtime.processors.HttpProcessor.execute(HttpProcessor.java:106)
at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
at org.webharvest.runtime.processors.BodyProcessor.execute(BodyProcessor.java:27)
at org.webharvest.runtime.processors.WebHarvestPlugin.executeBody(WebHarvestPlugin.java:246)
at com.freedomoss.crowdcontrol.webharvest.plugin.ocr.OcrImagePlugin.executePlugin(OcrImagePlugin.java:26)
at org.webharvest.runtime.processors.WebHarvestPlugin.execute(WebHarvestPlugin.java:125)
at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
at org.webharvest.runtime.processors.BodyProcessor.execute(BodyProcessor.java:27)
at org.webharvest.runtime.processors.WebHarvestPlugin.executeBody(WebHarvestPlugin.java:246)
at com.freedomoss.crowdcontrol.webharvest.plugin.ocr.OcrPlugin.executePlugin(OcrPlugin.java:89)
at org.webharvest.runtime.processors.WebHarvestPlugin.execute(WebHarvestPlugin.java:125)
at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
at org.webharvest.runtime.processors.BodyProcessor.execute(BodyProcessor.java:27)
at org.webharvest.runtime.processors.VarDefProcessor.execute(VarDefProcessor.java:59)
at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
at org.webharvest.runtime.Scraper.execute(Scraper.java:169)
at org.webharvest.runtime.Scraper.execute(Scraper.java:182)
at com.freedomoss.crowdcontrol.webharvest.executor.LocalWebharvestTaskExecutor.executeWebHarvestTask(LocalWebharvestTaskExecutor.java:182)
at com.freedomoss.crowdcontrol.webharvest.executor.LocalWebharvestTaskExecutor.executeWebHarvestTask(LocalWebharvestTaskExecutor.java:93)
at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmission(SubmissionsPortionExecutionThread.java:367)
at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmissionWithAllocationLogger(SubmissionsPortionExecutionThread.java:348)
at com.workfusion.service.machine.SubmissionsPortionExecutionThread.lambda$processSubmissionInNamedThread$41(SubmissionsPortionExecutionThread.java:336)
at com.workfusion.utils.thread.NamedThreadTemplate.executeWithNamedThread(NamedThreadTemplate.java:10)
at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmissionInNamedThread(SubmissionsPortionExecutionThread.java:336)
at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmissions(SubmissionsPortionExecutionThread.java:304)
at com.workfusion.service.machine.SubmissionsPortionExecutionThread.run(SubmissionsPortionExecutionThread.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.reflect.GeneratedMethodAccessor3312.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.webharvest.runtime.web.HttpClientManager.execute(HttpClientManager.java:215)
… 29 more

Any help would be appreciated!

Thanks :slight_smile:

@shubham_saxena do you get this error every time you use OCR plugin, even if you use another image (for example, any image in open access on the Internet)?
Please also share which version of RPA Express you are using.

Hi @ashapkina ,
No it only happens when i try to use/access any image which is stored in my Minio Folder and the OCR plugin works well with any image which is on internet.
And i am using SPA v.8.4.4.2.

Check the bucket policy of bucket Public. Is it set to Read and Write for everyone?

@shubham_saxena did you have a chance to check the settings in the Public folder?