Frank Epperlein

Results 14 comments of Frank Epperlein

I tested this using `pip install git+https://github.com/hofrob/fastapi@fix-return-no-content-future-annotations` and it fixes my issue in #9723. :+1:

@cak My code from above is probably not the best for an example. There are other issues with it that i discovered later. Im using this now: ```python3 class SecurityHeadersMiddleware:...

I test this using `python3 -m pip install --force-reinstall git+https://github.com/tiangolo/fastapi/@feat/custom-generate-json-schema` and it fixes at least my issue, from https://github.com/tiangolo/fastapi/discussions/9709#discussioncomment-6415698. It would be very nice to have this in the next...

Thank you for the update. Very annoying, I hope they follow soon.

Ok, thank you for your assessment. So far, all my debugging attempts failed. I will probably raise the same question at Starlette then, because the code above is almost directly...

Oh, sorry, I thought you left it open in case I had something else to add. Of course. I was not aware you are also working on Starlette. Thank you...

@LysanderKie Dependent on what you do and how urgent it is, you might switch to using an pure asgi middleware like this in the meantime: https://www.starlette.io/middleware/?cmdf=starlette+async+middleware#inspecting-or-modifying-the-response

Unfortunately, the code above with `a2wsgi==1.10.1` and `starlette==0.37.1`, started with `uwsgi` as described, is just hanging in the curl request for me. ``` ❯ curl -v http://127.0.0.1:8000 * Trying 127.0.0.1:8000......

> It's never used in PydanticBaseSettingsSource because this method usually will be called in __call__. and as __call__ is an abstractmethod every source has to implement __call__. the source itself...

> Consider a custom source that loads values from the network, then it needs get_field_value I think. In such a case, it also had to implement the call to `get_field_value`...