kestra-io / plugin-fs

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

Download and Request tasks throw "No HttpClientFactory present on classpath, cannot create client" #98

Closed anna-geller closed 7 months ago

anna-geller commented 7 months ago

Issue description

2024-02-06 10:19:21.939java.lang.IllegalStateException: No HttpClientFactory present on classpath, cannot create client
    at io.micronaut.http.client.HttpClientFactoryResolver.resolveClientFactory(HttpClientFactoryResolver.java:50)
    at io.micronaut.http.client.HttpClientFactoryResolver.getFactory(HttpClientFactoryResolver.java:38)
    at io.micronaut.http.client.HttpClient.create(HttpClient.java:264)
    at io.micronaut.reactor.http.client.ReactorHttpClient.create(ReactorHttpClient.java:130)
    at io.kestra.plugin.fs.http.AbstractHttp.client(AbstractHttp.java:135)
    at io.kestra.plugin.fs.http.Request.run(Request.java:88)
    at io.kestra.plugin.fs.http.Request.run(Request.java:23)
    at io.kestra.core.runners.Worker$WorkerThread.run(Worker.java:720)

from the guided tour example:

id: welcome
namespace: company.team
description: Welcome to Kestra!

inputs:
- id: user
  type: STRING
  defaults: Kestra user

tasks:
- id: api
  type: io.kestra.plugin.fs.http.Request
  uri: https://dummyjson.com/products

also:

id: parse_pdf
namespace: blueprint

tasks:
  - id: download_pdf
    type: io.kestra.plugin.fs.http.Download
    uri: https://huggingface.co/datasets/kestra/datasets/resolve/main/pdf/app_store.pdf