lewijw commented on PR #36052:
URL: https://github.com/apache/airflow/pull/36052#issuecomment-1921462946
FYI. I was able to get past the prior issue by adding a "with":
def _handle_api_not_found(
request: ConnexionRequest, ex: starlette.exceptions.HTTPException
) -> ConnexionResponse:
with connexion_app.app.app_context():
if any([request.url.path.startswith(p) for p in base_paths]):
# 404 errors are never handled on the blueprint level
# unless raised from a view func so actual 404 errors,
# i.e. "no route for it" defined, need to be handled
# here on the application level
return _handle_http_exception(ex)
else:
return views.not_found(ex)
I expect something like it needs to be done with the other handlers.
After getting past this problem, I am running into another error message:
RuntimeError: Unable to build URLs outside an active request without
'SERVER_NAME' configured. Also configure 'APPLICATION_ROOT' and
'PREFERRED_URL_SCHEME' as needed.
So, it looks like something is not getting initialized.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]