Comments (5)
Are you running a RQ worker process? This is a separate process that picks up the tasks that are put in the queue and executes them. Without the worker the task will never progress.
from microblog.
I forgot I needed to be running the RQ worker process. Thank You. How do I go about setting the Flask-Mail variables in the context of the RQ worker, though? I thought that was all set in my .env file that is loaded from config.py. I am getting an error that states smtplib.SMTPServerDisconnected: Connection unexpectedly closed. I have exported each of the mail settings such as MAIL_SERVER, MAIL_USERNAME, MAIL_PASSWORD, MAIL_PORT and MAIL_USE_TLS.
from microblog.
The configuration is done in the .env file, as you describe. Have you tested sending emails before? The most likely cause of the error is that your configuration is wrong.
from microblog.
The reset password emails work perfectly, I just cannot get the export posts email to work and everything points back to the smtp error.
from microblog.
@miguelgrinberg Thank you for your help with this. I restarted the application and started the worker process and everything is working. I did, however, notice that when a user has no posts and asks for them to be exported, it will send the email with an empty json file(empty as in it has no post data but it does have the structure for it) but the progress bar and job itself gets stuck because of the 100 * i // total_posts calculation will result in division by zero. It works perfectly where there are actual posts, though.
from microblog.
Related Issues (20)
- elastic_transport.ConnectionError when post is submitted? HOT 6
- Language inconsistency during poedit translation process? HOT 7
- Using JinJa2 filter function truncate to implement 'Read more'? HOT 21
- Bug in lesson 5 due to werkzeug.urls - url parsing removed HOT 4
- Lesson 6, FLASK_ENV is removed from Flask 2.3.0 HOT 2
- Unable to load celery application. 'str' object has no attribute 'level' when Integrating Celery with Flask? HOT 17
- Unable to import 'url_parse' from 'werkzeug.urls' in flask shell execution HOT 15
- login error was reported during deployment? HOT 7
- Github links in chapters start with wrong tag (one-off) HOT 2
- Dead link to flask-babel docs HOT 1
- flask_moment error when trying to format HOT 4
- Multidict Package Problematic in python:slim HOT 1
- next HOT 3
- Error: Cannot import name 'app' from 'app' HOT 2
- Exporting a huge number of database records HOT 3
- ImportError...circular import HOT 3
- Chp 4 udemy course: Video 27 Time 1 min: db.sessions.add(u) Generates Error
- Tagging system HOT 3
- Chapter 7 -Listing 63: Email without from-adress and subject HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microblog.