kestra-io / plugin-fs

https://kestra.io/plugins/plugin-fs/
Apache License 2.0
5 stars 7 forks source link

http.Download task is broken after Micronaut 4 migration -- No HttpClientFactory present on classpath, cannot create client #101

Closed anna-geller closed 6 months ago

anna-geller commented 6 months ago

Feature description

Reproducer:

id: csv
namespace: dev
tasks:
  - id: hello
    type: io.kestra.plugin.fs.http.Download
    uri: https://huggingface.co/datasets/kestra/datasets/blob/main/csv/orders.csv

error:

No HttpClientFactory present on classpath, cannot create client
2024-02-17 18:16:06.839java.lang.IllegalStateException: No HttpClientFactory present on classpath, cannot create client
    at io.micronaut.http.client.StreamingHttpClientFactoryResolver.resolveClientFactory(StreamingHttpClientFactoryResolver.java:50)
    at io.micronaut.http.client.StreamingHttpClientFactoryResolver.getFactory(StreamingHttpClientFactoryResolver.java:38)
    at io.micronaut.http.client.StreamingHttpClient.create(StreamingHttpClient.java:161)
    at io.micronaut.reactor.http.client.ReactorStreamingHttpClient.create(ReactorStreamingHttpClient.java:81)
    at io.kestra.plugin.fs.http.AbstractHttp.streamingClient(AbstractHttp.java:141)
    at io.kestra.plugin.fs.http.Download.run(Download.java:70)
    at io.kestra.plugin.fs.http.Download.run(Download.java:30)
    at io.kestra.core.runners.Worker$WorkerThread.run(Worker.java:710)