From d3f03abd511f6c7944e097158874ab62a26ec2de Mon Sep 17 00:00:00 2001 From: Sandro La Bruzzo Date: Fri, 18 Feb 2022 11:11:17 +0100 Subject: [PATCH] fixed wrong json path --- .../main/scala/eu/dnetlib/dhp/datacite/AbstractRestClient.scala | 2 +- .../src/main/scala/eu/dnetlib/dhp/datacite/ImportDatacite.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/AbstractRestClient.scala b/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/AbstractRestClient.scala index 471149b259..b09ffcfd53 100644 --- a/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/AbstractRestClient.scala +++ b/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/AbstractRestClient.scala @@ -49,7 +49,7 @@ abstract class AbstractRestClient extends Iterator[String] { } private def doHTTPRequest[A <: HttpUriRequest](r: A): String = { - val timeout = 60; // seconds + val timeout = 600; // seconds val config = RequestConfig .custom() .setConnectTimeout(timeout * 1000) diff --git a/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/ImportDatacite.scala b/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/ImportDatacite.scala index cb021925aa..6e2cc798c5 100644 --- a/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/ImportDatacite.scala +++ b/dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/datacite/ImportDatacite.scala @@ -46,7 +46,7 @@ object ImportDatacite { Source .fromInputStream( getClass.getResourceAsStream( - "/eu/dnetlib/dhp/actionmanager/datacite/import_from_api.json" + "/eu/dnetlib/dhp/datacite/import_from_api.json" ) ) .mkString