fix htmlunit js errors
This commit is contained in:
parent
529db0442c
commit
41c4ee7997
@ -35,6 +35,8 @@ public class KiasService {
|
|||||||
Integer leaderId = userService.findOneByLoginIgnoreCase("admin").getId();
|
Integer leaderId = userService.findOneByLoginIgnoreCase("admin").getId();
|
||||||
List<GrantDto> grants = new ArrayList<>();
|
List<GrantDto> grants = new ArrayList<>();
|
||||||
try (final WebClient webClient = new WebClient()) {
|
try (final WebClient webClient = new WebClient()) {
|
||||||
|
webClient.setJavaScriptTimeout(60 * 1000);
|
||||||
|
webClient.getOptions().setThrowExceptionOnScriptError(false);
|
||||||
for (Integer year : generateGrantYears()) {
|
for (Integer year : generateGrantYears()) {
|
||||||
final HtmlPage page = webClient.getPage(String.format(BASE_URL, CONTEST_STATUS_ID, CONTEST_TYPE, year));
|
final HtmlPage page = webClient.getPage(String.format(BASE_URL, CONTEST_STATUS_ID, CONTEST_TYPE, year));
|
||||||
grants.addAll(getKiasGrants(page));
|
grants.addAll(getKiasGrants(page));
|
||||||
|
Loading…
Reference in New Issue
Block a user