langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Error: The `http3` feature is unstable, and requires the `RUSTFLAGS

Open Geraldf opened this issue 1 year ago • 2 comments

Bug Description

freshly cloned repo, and running make init for the first time, create this error message:

error: The "http3" feature is unstable, and requires the RUSTFLAGS="--cfg reqwest_unstable'environment variable to be set. --> /home/langflow/.cache/puccinialin/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.12.23/src/lib.rs:251:1 | 251 | / compile_error!( 252 | | "\ 253 | | Thehttp3feature is unstable, and requires the \ 254 | | RUSTFLAGS='--cfg reqwest_unstable'environment variable to be set.\ 255 | | " 256 | | ); | |_^

Reproduction

Steps to reproduce

  1. clone the repo
  2. run "make init"

Expected behavior

Complete without error

Who can help?

No response

Operating System

Docker

Langflow Version

?

Python Version

None

Screenshot

No response

Flow File

No response

Geraldf avatar Sep 02 '25 12:09 Geraldf

A temporary fix might be to change line 60 in the Makefile:

-	@uv sync --frozen --extra "postgresql" $(EXTRA_ARGS)  
+	@RUSTFLAGS='--cfg reqwest_unstable' uv sync --frozen --extra postgresql $(EXTRA_ARGS)

which passes the required flag for reqwest’s http3 feature.

It seems that release 2.0.0 of apify-client replaced httpx with impit, a Rust-based package that uses reqwest (which uses http3). A longer-term fix might involve downgrading apify-client to a pre-2.0.0 version.

HzaRashid avatar Sep 02 '25 22:09 HzaRashid

In the latest version, this problem no longer occurs. Reopen the issue if you are still experiencing this error. Thank you a lot

andifilhohub avatar Jan 13 '26 21:01 andifilhohub