Giter VIP home page Giter VIP logo

Comments (10)

SamR1 avatar SamR1 commented on June 7, 2024 1

Yes, no need to encode the @ in username.

from fittrackee.

astridx avatar astridx commented on June 7, 2024

Did you configurate Redis?
See

# Redis (required for API rate limits and email sending)

from fittrackee.

maximushugus avatar maximushugus commented on June 7, 2024

Yes, I forgot to specify this in my first post, I already had a redis docker, and configured my Fittrackee container with the variable for redis.

from fittrackee.

SamR1 avatar SamR1 commented on June 7, 2024

Hi,

On startup, FitTrackee loads the email config from EMAIL_URL. If it cannot parse the environment variable, it raises an error.
If there is no error at startup, it only means that EMAIL_URL can be parsed (credentials may be invalid).

If no email is sent and there are no errors in the logs, it seems that the dramatiq workers have not been started.
Can you check if the workers are running?
(just for information, I'm not the maintainer of the docker image)

Encoded passwords are not decoded by FitTrackee, I'll fix that. Thanks for the bug report.

from fittrackee.

maximushugus avatar maximushugus commented on June 7, 2024

By running a shell inside the container, I executed this command :
"flask worker --processes=2 >> dramatiq.log 2>&1"
But nothing happens.
Inside the "dramatiq.log" I have this error :

2023/10/02 15:09:01 - dramatiq.worker.WorkerThread - ERROR - Failed to process message account_confirmation_email({'language': 'fr', 'email': '[email protected]'}, {'username': 'divers', 'fittrackee_url': 'https://fittrackee.server.fr', 'operating_system': 'Windows', 'browser_name': 'Firefox', 'account_confirmation_url': 'https://fittrackee.server.fr/account-confirmation?token=q8PCPWxZSj4iGnudb504fV28WXkB_9GHg9hP4mua'}) with unhandled exception.
Traceback (most recent call last):
File "/opt/venv/lib/python3.10/site-packages/dramatiq/worker.py", line 485, in process_message
res = actor(*message.args, **message.kwargs)
File "/opt/venv/lib/python3.10/site-packages/dramatiq/actor.py", line 177, in call
return self.fn(*args, **kwargs)
File "/usr/src/app/fittrackee/emails/tasks.py", line 48, in account_confirmation_email
email_service.send(
File "/usr/src/app/fittrackee/emails/email.py", line 173, in send
smtp.login(self.username, self.password) # type: ignore
File "/usr/local/lib/python3.10/smtplib.py", line 750, in login
raise last_exception
File "/usr/local/lib/python3.10/smtplib.py", line 739, in login
(code, resp) = self.auth(
File "/usr/local/lib/python3.10/smtplib.py", line 662, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Error: authentication failed:')

from fittrackee.

SamR1 avatar SamR1 commented on June 7, 2024

thanks for the feedback.

encoded password is not decoded, the MR #433 will fix this bug (fix not yet released).

from fittrackee.

maximushugus avatar maximushugus commented on June 7, 2024

Thanks
With this fix, are we supposed to put the EMAIL_URL with quotation marks or use encoded caracters as here ?

from fittrackee.

SamR1 avatar SamR1 commented on June 7, 2024

With encoded characters.
For instance with password passwith@and&and?, the EMAIL_URL will be: smtp://[email protected]:passwith%40and%26and%[email protected]:587?tls=True

from fittrackee.

maximushugus avatar maximushugus commented on June 7, 2024

Ok
The "@" character in the username doesn't need to be encoded ?

from fittrackee.

SamR1 avatar SamR1 commented on June 7, 2024

fix on encoded password released in v0.7.24

from fittrackee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.