Using Katalon 5.4, some of our REST API calls are failing with the reason: “utf-8”. I retried this same command in 5.3 and it works as expected. The specific API is for retrieving a stored email from MailGun using basic authorization.
I tried many different options and combinations of Accept, Accept-Charset, and Content-Type, but keep getting the same error. If I change Accept to message/rfc2822 I get the same error but “ascii” instead of “utf-8”. The documentation for this API is here: Messages — Mailgun API documentation.
The full stacktrace is here:
(Stack trace: java.nio.charset.IllegalCharsetNameException: “utf-8”
at java.nio.charset.Charset.checkName(Charset.java:315)
at java.nio.charset.Charset.lookup2(Charset.java:484)
at java.nio.charset.Charset.lookup(Charset.java:464)
at java.nio.charset.Charset.forName(Charset.java:528)
at com.kms.katalon.core.testobject.impl.HttpTextBodyContent.(HttpTextBodyContent.java:71)
at com.kms.katalon.core.webservice.common.BasicRequestor.setBodyContent(BasicRequestor.java:214)
at com.kms.katalon.core.webservice.common.RestfulClient.response(RestfulClient.java:195)
at com.kms.katalon.core.webservice.common.RestfulClient.sendGetRequest(RestfulClient.java:79)
at com.kms.katalon.core.webservice.common.RestfulClient.send(RestfulClient.java:48)
at com.kms.katalon.controller.WebServiceController.sendRequest(WebServiceController.java:37)
at com.kms.katalon.composer.webservice.parts.RestServicePart$2$1.run(RestServicePart.java:132)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
)