Unspecified value parameter charset

341 views
Skip to first unread message

Wajih A

unread,
May 31, 2021, 10:19:37 AM5/31/21
to Gatling User Group
Previosuly my simulations were working fine with 3.3.1. Now i have upgrded to 3.6.0 and my code is failing to compile with this error.

14:05:13.164 [ERROR] i.g.c.ZincCompiler$ /clients/gatling/foo/BAR.scala:307:27: not enough arguments for method apply: (string: io.gatling.core.session.Expression[String], charset: java.nio.charset.Charset): io.gatling.core.body.StringBody in object StringBody.
Unspecified value parameter charset.
          .body(StringBody(""))

Looking at this page https://gatling.io/docs/current/http/http_request/,  i have tried different varaints but still get the same error.

I am sure this is something trival as i might have to set or pass a charset but a little hand holding will be appreciated.

Stéphane LANDELLE

unread,
May 31, 2021, 10:37:41 AM5/31/21
to gat...@googlegroups.com
You're breaking the imports.

Don't import io.gatling.core.body.StringBody.

Stick to the standard imports.

import io.gatling.core.Predef._
import io.gatling.http.Predef._

Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io




--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/8db7b708-e0e6-4ded-b69c-7e6a356b48c2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages