rororo icon indicating copy to clipboard operation
rororo copied to clipboard

Support `raise HTTPFound`

Open u8sand opened this issue 4 years ago • 2 comments

I can't seem to get redirects working when using rororo, the rororo exception handler seems to break it even when use_error_middleware=False.

Nonetheless, thanks for creating this -- I love openapi first and have recently starting using aiohttp for most things.

u8sand avatar Jul 01 '21 14:07 u8sand

Hi @u8sand

Thanks for reporting this.

Couple of past months I don't have enough time to share between my work and this project, but in Sep I'll have some spare time to work on rororo issues.

This issue seems reasonable, I'll update rororo test suite (and examples applications) to ensure raising web.HttpFound supported properly.

playpauseandstop avatar Aug 18 '21 17:08 playpauseandstop

@u8sand @playpauseandstop It works by passing error_middleware_kwargs={"ignore_exceptions": web.HTTPFound} to setup_openapi

93578237 avatar Dec 17 '21 22:12 93578237