I have an issue to use flask-images with Flask-Apscheduler, I have a cron job to send email which is has images in my email template that needs to be sent along with email, all the app context is working good but the flask-images throws error
`File "../email/myemail.html", line 32, in top-level template code
File "../python2.7/site-packages/flask/helpers.py", line 332, in url_for
return appctx.app.handle_url_build_error(error, endpoint, values)
File "../python2.7/site-packages/flask/app.py", line 1800, in handle_url_build_error
rv = handler(error, endpoint, values)
File "../python2.7/site-packages/flask_images/core.py", line 124, in build_error_handler
return self.build_url(filename, mode=mode, **values)
File "../python2.7/site-packages/flask_images/core.py", line 206, in build_url
scheme or request.scheme,
`
Hi @mikeboers thanks for this awesome extension
I have an issue to use flask-images with Flask-Apscheduler, I have a cron job to send email which is has images in my email template that needs to be sent along with email, all the app context is working good but the flask-images throws error
`File "../email/myemail.html", line 32, in top-level template code
File "../python2.7/site-packages/flask/helpers.py", line 332, in url_for return appctx.app.handle_url_build_error(error, endpoint, values) File "../python2.7/site-packages/flask/app.py", line 1800, in handle_url_build_error rv = handler(error, endpoint, values) File "../python2.7/site-packages/flask_images/core.py", line 124, in build_error_handler return self.build_url(filename, mode=mode, **values) File "../python2.7/site-packages/flask_images/core.py", line 206, in build_url scheme or request.scheme, `
RuntimeError: Working outside of request context.
but still doesnt work, any idea?