This includes the interpolation of the authentication variable. However, the authentication is only part of the RequestModel and does not get transferred to the request or the client.
As a result, the request is sent with the uninterpolated authentication stored in the client, leading to an unauthorized response.
Could you please take a look at this? I'm happy to provide more details if needed.
Hi,
First of all, thank you for this super cool project—it's been really helpful!
I wanted to report an issue related to environment variable interpolation for authentication.
I tried to figure out, how it is supposed to work. Inside the send_request function in app.py:
The uninterpolated authentication is fetched from the form like this:
This is then passed to the
httpx.AsyncClient
constructor.Later, the interpolation is done on the
RequestModel
inside:This includes the interpolation of the authentication variable. However, the authentication is only part of the
RequestModel
and does not get transferred to the request or the client.As a result, the request is sent with the uninterpolated authentication stored in the client, leading to an unauthorized response.
Could you please take a look at this? I'm happy to provide more details if needed.
Thanks again for your effort on this project!
Best regards,
Robert