Open walterZimisele96 opened 1 year ago
I'm running into the same exact issue in rest-assured 5.4.0 (groovy version is 4.0.16).
The static io.restassured.internal.http.URIBuilder.encode()
method is definitely there, and it accepts 2 strings.
Has anyone been able to resolve it?
Below is the code that causing issue:
response = (Response) given(). header("Content-Type", "application/json"). contentType(ContentType.JSON). accept(ContentType.JSON). body(request). when(). post("https://reqres.in/api/users");
Actual loggs:
groovy.lang.MissingMethodException: No signature of method: static io.restassured.internal.http.URIBuilder.encode() is applicable for argument types: (String, String) values: [api, UTF-8] Possible solutions: hashCode()
POM file
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">