From 81032d6c02a2b54d955f396d4f2a50a1f17dd954 Mon Sep 17 00:00:00 2001 From: Enrico Girotto Date: Mon, 10 Feb 2025 18:39:36 +0100 Subject: [PATCH] [docker build] Forgot a slash :( --- .../copernicus/datacubes/CopernicusCDSDatacube.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adapters/klab.adapter.copernicus/src/main/java/org/integratedmodelling/adapter/copernicus/datacubes/CopernicusCDSDatacube.java b/adapters/klab.adapter.copernicus/src/main/java/org/integratedmodelling/adapter/copernicus/datacubes/CopernicusCDSDatacube.java index 3d3a2805c..cf59187fd 100644 --- a/adapters/klab.adapter.copernicus/src/main/java/org/integratedmodelling/adapter/copernicus/datacubes/CopernicusCDSDatacube.java +++ b/adapters/klab.adapter.copernicus/src/main/java/org/integratedmodelling/adapter/copernicus/datacubes/CopernicusCDSDatacube.java @@ -143,7 +143,7 @@ protected boolean downloadChunk(int chunk, String variable, File destinationDire // retrieve the job id String endpoint = getEndpointUrl("/processes/" + this.dataset + "/execute"); - Logging.INSTANCE.info("Ask for job id: " + endpoint + " with key " + apiKey + "\n" + jsonBody); + Logging.INSTANCE.info("Ask for job id: " + endpoint + "\n" + jsonBody); HttpResponse response = Unirest.post(endpoint) .header(CDS_API_KEY_HEADER, apiKey) .header("Content-Type", "application/json") @@ -177,8 +177,8 @@ protected boolean downloadChunk(int chunk, String variable, File destinationDire /* * inquire about task */ - endpoint = getEndpointUrl("jobs/" + requestId); - Logging.INSTANCE.info("Ask for job status: " + endpoint + " with key " + apiKey + "\n" + jsonBody); + endpoint = getEndpointUrl("/jobs/" + requestId); + Logging.INSTANCE.info("Ask for job status: " + endpoint); response = Unirest.get(endpoint) .header("PRIVATE-TOKEN", apiKey) .header("Content-Type", "application/json") @@ -197,7 +197,7 @@ protected boolean downloadChunk(int chunk, String variable, File destinationDire } while (time < TIMEOUT_SECONDS && !"successful".equals(status) && !"failed".equals(status)); // retrieve the job results - endpoint = getEndpointUrl("jobs/" + requestId + "/results"); + endpoint = getEndpointUrl("/jobs/" + requestId + "/results"); Logging.INSTANCE.info("Ask for job results: " + endpoint + " with key " + apiKey + "\n" + jsonBody); response = Unirest.get(endpoint) .header("PRIVATE-TOKEN", apiKey)