httpRequest compilation error

When i made my simulation with recorder, i got the following line in my simulation class
.exec(http(“Appel cartégie”)
.httpRequest(“RequestElement(http://myhost/espacePrestataire/cartegie/48929360500023/1/1/0/1/0,JSON,Map(Referer → http://myhost/espacePrestataire/eligibilite, Connection → keep-alive, Accept → /, Cookie → Drupal.toolbar.collapsed=0; Drupal.tableDrag.showWeight=0; _ga=GA1.2.967867089.1412690271; has_js=1; _gat=1; SESSf0065e65aa4d54fa03930523b18f0e3b=CLhgEByeb56XNPqBA5_ndLYlbUcDXeFpVDVy0iMylKI, Accept-Language → fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3, Accept-Encoding → gzip, deflate, User-Agent → Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0, Host → myhost, X-Requested-With → XMLHttpRequest),None,200,List(),List()).method”, Left("""/espacePrestataire/cartegie/48929360500023/1/1/0/1/0""")):

But this line produces an error an my simulation class can’t compile. Any help please.

Error description :
overloaded method value httpRequest with alternatives: (method: String,urlOrURI:
Either[io.gatling.core.session.Session =>
io.gatling.core.validation.Validation[String],com.ning.http.client.uri.Uri])io.gatling.http.request.builder.HttpRe
questBuilder (method: String,url: io.gatling.core.session.Session =>
io.gatling.core.validation.Validation[String])io.gatling.http.request.builder.HttpRequestBuilder cannot be
applied to (String, scala.util.Left[String,Nothing]).

Is this the raw output you got from the recorder?! o_0
Which version do you use? Can you share a way to reproduce, please?

Yes it’s the raw output of the recorder and my gatling version is the 2.0.2

I Can’t describe exactly how to reproduce , but to summarize i have form which calls an url (in ajax way) when i lose a focus on an input of my form and i think that is that part of my scenario which produces the code

I’ve found the bug in the rendering, but is it really expected that you’re using an HTTP method named JSON instead of something like GET, POST or PUT???

RequestElement(http://myhost/espacePrestataire/cartegie/48929360500023/1/1/0/1/0,JSON

Issue fixed: https://github.com/gatling/gatling/issues/2387

Thanks for reporting!

Great , Thanks for the answers .