j.n.ConnectException: not an SSL/TLS record Error

914 views
Skip to first unread message

rares....@gmail.com

unread,
Jul 18, 2016, 4:52:49 AM7/18/16
to Gatling User Group
Hi,

I am keep getting this error when running a simple test to access a web site, my request is https://site.com/hu/

Request '/' failed for user 1
io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: 5e13496ab31fd95111673fa4e418a9e84e...........

Can someone help me?

Thanks!

rares....@gmail.com

unread,
Jul 19, 2016, 7:59:38 AM7/19/16
to Gatling User Group
Update:

It seems like if I remove the .inferHtmlResources parameter I don't get the empty request and all seems OK.
Message has been deleted

Stéphane LANDELLE

unread,
Jul 19, 2016, 3:33:22 PM7/19/16
to gat...@googlegroups.com
Please provide a reproducer.

Stéphane Landelle
GatlingCorp CEO


On Tue, Jul 19, 2016 at 2:00 PM, <rares....@gmail.com> wrote:


On Monday, July 18, 2016 at 10:52:49 AM UTC+2, rares....@gmail.com wrote:

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rares....@gmail.com

unread,
Jul 20, 2016, 4:18:20 AM7/20/16
to Gatling User Group
Hi below is the used scenario,

baseURL is a local site https://localhost....

val
httpProtocol = http
.baseURL(baseUrlString)
.inferHtmlResources(BlackList(""".*\.js""", """.*\.css""", """.*\.gif""", """.*\.jpeg""", """.*\.jpg""", """.*\.ico""", """.*\.woff""", """.*\.(t|o)tf""", """.*\.png""", """.*\.eot\?""", """.*\.png\?context\=bWF.*""",""".*\?context\=bWFzd.*""", """.*Default\-Thumbnail\?context\=bWF.*"""), WhiteList())
.acceptHeader("*/*")
.acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("en-US,en;q=0.5")
.userAgentHeader("Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko")

val scn = exec(http("Access web site") //this is the Access_web_site
 .get("/hu/")
.headers(Headers.headers_0)

val access: ChainBuilder = exec(Access_web_site.scn).exec(Click_on.scn)
val AccessSiteSerch: ScenarioBuilder = scenario ("blabla").exec(access)

setUp(
AccessSiteSearch.inject(atOnceUsers(1))
).protocols(httpProtocol)


if I comment out the parameter , the scenarios works OK and I don't get an empty http request for /
 .inferHtmlResources 

hope this makes sens

Stéphane LANDELLE

unread,
Jul 20, 2016, 5:03:50 AM7/20/16
to gat...@googlegroups.com
Reproducing means being able to run it. Could you please at least provide the main page HTML?

Stéphane Landelle
GatlingCorp CEO


rares....@gmail.com

unread,
Jul 21, 2016, 3:04:01 AM7/21/16
to Gatling User Group
Sorry ..the page is deployed locally and you don't have access to it from outside ... I will try to replicate this scenario on a public page and share the results
Thanks for the involvement !
Reply all
Reply to author
Forward
0 new messages