18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Problems accessing intranet sites when external proxy is enabled
my office settings use proxy server for accessing internet and when i am using sahi with out setting external proxy settings i am unable to record. so i enabled external proxy settings and when i access internet sites after opening sahi, it works fine but intranet sites are not getting opened. It says unable to find IP address for the hostname. can anyone help me pls in this .....
Comments
ext.http.both.proxy.bypass_hosts
such that it matches your local sites pattern.
Restart Sahi and it should work.
Tried setting the ext.http.both.proxy.bypass_hosts property but didnt work for me. actually i am using older version of sahi that is downlaoded around 2 years back. i dont think this property was included at that time. i set the property as ext.http.both.proxy.bypass_hosts=*.mycompany.com. is this correct or is there any work around
# There is only one bypass list for both secure and insecure.
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.mycompany.com
But it did not work.
You will have to use the newer version of Sahi for this to work.
Regards,
Narayan
Could you please elaborate your problem and specify what happened when you say "But it did not work"?
Regards,
Narayan
WARNING: java.lang.StringIndexOutOfBoundsException: String index out of range: -9
at java.lang.String.substring(Unknown Source)
at net.sf.sahi.response.HttpResponse.status(HttpResponse.java:66)
at net.sf.sahi.response.HttpModifiedResponse.<init>(HttpModifiedResponse.java:47)
at net.sf.sahi.RemoteRequestProcessor.addFilters(RemoteRequestProcessor.java:207)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:190)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:81)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:142)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:93)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Then I tried adding another entry in ext.http.both.proxy.bypass_hosts, but i got the same error.