Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix testSentinel5PL2DuplicateRequests #369

Open
bossie opened this issue Jan 31, 2025 · 0 comments
Open

fix testSentinel5PL2DuplicateRequests #369

bossie opened this issue Jan 31, 2025 · 0 comments
Assignees

Comments

@bossie
Copy link
Collaborator

bossie commented Jan 31, 2025

Build is broken:

Job aborted due to stage failure: Task 0 in stage 145.0 failed 1 times, most recent failure: Lost task 0.0 in stage 145.0 (TID 382) (localhost executor driver): org.openeo.geotrellissentinelhub.SentinelHubException: Sentinel Hub returned an error
response: HTTP/1.1 500 Internal Server Error with body: {"error":{"status":500,"reason":"Internal Server Error","message":"Illegal request to creo://EODATA/Sentinel-5P/TROPOMI/L2__NO2___/2018/07/01/S5P_RPRO_L2__NO2____20180701T110829_20180701T124959_03704_03_020400_20221105T050139/S5P_RPRO_L2__NO2____20180701T110829_20180701T124959_03704_03_020400_20221105T050139.nc. HTTP Status: '404' On CreoDIAS, you get 'Illegal request 403 error' also when a file is missing. So first make sure that the file is present.","code":"RENDERER_EXCEPTION"}}
request: POST https://creodias.sentinel-hub.com/api/v1/processwith (possibly abbreviated) body: {
      "input": {
        "bounds": {
          "bbox": [679983.803624928, 5804322.179863144, 682429.7885300554, 5806768.164768269],
          "properties": {
            "crs": "http://www.opengis.net/def/crs/EPSG/0/3857"
          }
        },
        "data": [
          {
            "type": "sentinel-5p-l2",
            "dataFilter": {"timeRange":{"from":"2018-07-01T00:00:00Z","to":"2018-07-02T00:00:00Z"}},
            "processing": {}
          }
        ]
      },
      "output": {
        "width": 256,
        "height": 256,
        "responses": [
          {
            "identifier": "default",
            "format": {
              "type": "image/tiff"
            }
          }
        ]
      },
      "evalscript": "//VERSION=3\nfunction setup() {\n  return {\n    input: [{\n      \"bands\": [\"NO2\"]\n    }],\n    output: {\n      bands: 1,\n      sampleType: \"FLOAT32\",\n    }\n  };\n}\n\nfunction evaluatePixel(sample) {\n  return [sample.NO2];\n}"
    }...
 at org.openeo.geotrellissentinelhub.SentinelHubException$.apply(SentinelHubException.scala:17)
 at org.openeo.geotrellissentinelhub.DefaultProcessApi.$anonfun$getTile$8(ProcessApi.scala:204)
 at org.openeo.geotrellissentinelhub.DefaultProcessApi.$anonfun$getTile$8$adapted(ProcessApi.scala:185)
 at scalaj.http.HttpRequest.$anonfun$toResponse$17(Http.scala:422)
 at scala.Option.getOrElse(Option.scala:189)
 at scalaj.http.HttpRequest.$anonfun$toResponse$14(Http.scala:414)
 at scala.Option.getOrElse(Option.scala:189)
 at scalaj.http.HttpRequest.toResponse(Http.scala:414)
 at scalaj.http.HttpRequest.doConnection(Http.scala:368)
 at scalaj.http.HttpRequest.exec(Http.scala:343)
 at org.openeo.geotrellissentinelhub.DefaultProcessApi.$anonfun$getTile$7(ProcessApi.scala:185)
 at org.openeo.geotrellissentinelhub.DefaultProcessApi$.$anonfun$withRetryAfterRetries$10(ProcessApi.scala:89)
 at net.jodah.failsafe.Functions.lambda$get$0(Functions.java:46)
 at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:65)
 at net.jodah.failsafe.RetryPolicyExecutor.lambda$supply$0(RetryPolicyExecutor.java:65)
 at net.jodah.failsafe.Execution.executeSync(Execution.java:128)
 at net.jodah.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:378)
 at net.jodah.failsafe.FailsafeExecutor.get(FailsafeExecutor.java:68)
 at org.openeo.geotrellissentinelhub.DefaultProcessApi$.withRetryAfterRetries(ProcessApi.scala:89)
 at org.openeo.geotrellissentinelhub.DefaultProcessApi.getTile(ProcessApi.scala:184)
 at org.openeo.geotrellissentinelhub.PyramidFactoryTest$ProcessApiSpy.getTile(PyramidFactoryTest.scala:83)
 at org.openeo.geotrellissentinelhub.PyramidFactory.$anonfun$layer$13(PyramidFactory.scala:198)
 at org.openeo.geotrellissentinelhub.MemoizedAuthApiAccessTokenAuthorizer.authorized(Authorizer.scala:112)
 at org.openeo.geotrellissentinelhub.PyramidFactory.authorized(PyramidFactory.scala:112)
 at org.openeo.geotrellissentinelhub.PyramidFactory.$anonfun$layer$12(PyramidFactory.scala:195)
 at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:486)
 at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:492)
 at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
 at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:140)
 at org.apache.spark.shuffle.ShuffleWriteProcessor.write(ShuffleWriteProcessor.scala:59)
 at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:101)
 at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
 at org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:161)
 at org.apache.spark.scheduler.Task.run(Task.scala:139)
 at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:554)
 at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1529)
 at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:557)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 at java.base/java.lang.Thread.run(Thread.java:829)

Driver stacktrace:
@bossie bossie self-assigned this Jan 31, 2025
bossie added a commit that referenced this issue Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant