question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTP: Gatling shouldn't resolve remote address when connecting through a proxy

See original GitHub issue

After upgrading to Gatling 3.0.0 doesn’t seem to work with our proxy. I am trying to access our pre production environment, an external web page that can only be accessed from a small number of IP addresses (like our proxy). This did work in 2.3.1 but stopped working after i upgraded.

I have already tried to clear my DNS cache but this didn’t resolve the issue.

StackTrace:

java.net.UnknownHostException: "https://customer-pre-production.company.com/Application/Logon"
	at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
	at java.net.InetAddress.getAllByName(InetAddress.java:1192)
	at java.net.InetAddress.getAllByName(InetAddress.java:1126)
	at io.gatling.http.resolver.ShuffleJdkNameResolver.doResolveAll(ShuffleJdkNameResolver.scala:33)
	at io.netty.resolver.SimpleNameResolver.resolveAll(SimpleNameResolver.java:81)
	at io.gatling.http.cache.DnsCacheSupport$$anon$1.resolveAll(DnsCacheSupport.scala:124)
	at io.gatling.http.client.impl.DefaultHttpClient.resolveRemoteAddresses(DefaultHttpClient.java:441)
	at io.gatling.http.client.impl.DefaultHttpClient.sendTx(DefaultHttpClient.java:338)
	at io.gatling.http.client.impl.DefaultHttpClient.lambda$sendRequest$0(DefaultHttpClient.java:247)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:462)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748)

Http configuration:

val httpProtocol: HttpProtocolBuilder = http
       .baseURL(Properties.intranetURL)
       .warmUp(Properties.intranetURL)
       .inferHtmlResources(BlackList(Properties.blackList), WhiteList())
       .proxy(Proxy("proxy.company.local", 3128).httpsPort(3128))
       .noProxyFor("test325.company.local", "test078.company.local", "localhost")
       .acceptHeader("application/json, text/javascript, */*; q=0.01")
       .maxConnectionsPerHostLikeIE7
       .acceptEncodingHeader("gzip, deflate")
       .acceptLanguageHeader("en-US,en;q=0.5")
       .userAgentHeader("Gatling/3.0.0")

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
slandellecommented, Nov 27, 2018

it would be great if you throw some light when this new version will be out?

Most likely mid-December

0reactions
mailtoshrbcommented, Nov 27, 2018

@slandelle Thanks for the update, we installed both old and new versions in the same server and somewhere it was referencing to old version so seen above exceptionsc(resolved it now). We have workaround for now for proxy redirection and will wait until gatling 3.0.2 release, it would be great if you throw some light when this new version will be out?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GATLING Rest API testing - java.nio.channels ... - Stack Overflow
This DEBUG log happens when Gatling can't perform the warm up request, typically because you're behind a enterprise proxy. Please check the ...
Read more >
HTTP Protocol - Gatling
The first time Gatling encounters a remote, the connections will be opened like in HTTP/1 mode if there are multiple requests (for example...
Read more >
Load Testing of Vaadin Flow applications - CORE
Keywords: Load Testing, Vaadin, Performance, JMeter, Gatling, Java ... that user wants to reach- is resolved to the proxy's IP [18].
Read more >
A Complete Penetration Testing Guide with Sample Test Cases
can lead to security breaches. Connectivity: If the system is connected to an unsecured network (open connections) then it comes within the ...
Read more >
Urgently need help - Use proxy in Gatling script - Google Groups
I need to create a Gatling script for our application. The application can be accessed over the VPN client and with proxy URL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found