Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled error around self.SCHEMA_TYPES #597

Open
FedericoCeratto opened this issue Oct 9, 2023 · 0 comments
Open

Unhandled error around self.SCHEMA_TYPES #597

FedericoCeratto opened this issue Oct 9, 2023 · 0 comments

Comments

@FedericoCeratto
Copy link

Flasgger 0.9.5 seems to raise an empty exception when handling a GET request to an API path (not the documentation page)
The traceback is logged as:

Oct 09 14:57:19 <redacted>[3848779]: ERROR Exception: None
Oct 09 14:57:19 <redacted>[3848779]: ERROR   File "<redacted>/flask/app.py", line 1818, in full_dispatch_request
                                                            rv = self.preprocess_request()
                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
                                                          File "<redacted>/flask/app.py", line 2309, in preprocess_request
                                                            rv = self.ensure_sync(before_func)()
                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                          File "<redacted>/base.py", line 677, in before_request
                                                            type=self.SCHEMA_TYPES[
                                                                 ^^^^^^^^^^^^^^^^^^

I suspect the lookup into self.SCHEMA_TYPES at https://github.com/flasgger/flasgger/blob/master/flasgger/base.py#L799 fails.
If wrap the block in a try/except pass the API call runs normally.

@FedericoCeratto FedericoCeratto changed the title Unhandled error around Unhandled error around self.SCHEMA_TYPES Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant