bioimage-io / bioimageio-uploader

1 stars 2 forks source link

Review error: Username and Password not accepted #103

Open FynnBe opened 2 weeks ago

FynnBe commented 2 weeks ago

I just tried to leave a "request for changes" for https://bioimageio-uploader.netlify.app/#/status/artistic-ladybird and got this error message after entering a message and clicking "Request Changes".

                Traceback (most recent call last):

  File "/home/weiouyang/workspace/hypha-app-engine/bioimageio-uploader-service/bioimageio_uploader_service/api.py", line 110, in wrapper
    data = await handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/weiouyang/workspace/hypha-app-engine/bioimageio-uploader-service/bioimageio_uploader_service/api.py", line 314, in review
    review_data.save(backoffice)

  File "/home/weiouyang/workspace/hypha-app-engine/bioimageio-uploader-service/bioimageio_uploader_service/api.py", line 77, in save
    backoffice.request_changes(

  File "/home/weiouyang/miniconda3/lib/python3.12/site-packages/bioimageio_collection_backoffice/_backoffice.py", line 147, in request_changes
    notify_uploader(

  File "/home/weiouyang/miniconda3/lib/python3.12/site-packages/bioimageio_collection_backoffice/mailroom/send_email.py", line 32, in notify_uploader
    send_email(

  File "/home/weiouyang/miniconda3/lib/python3.12/site-packages/bioimageio_collection_backoffice/mailroom/send_email.py", line 56, in send_email
    _ = smtp_server.login(BOT_EMAIL, settings.mail_password.get_secret_value())
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/weiouyang/miniconda3/lib/python3.12/smtplib.py", line 750, in login
    raise last_exception

  File "/home/weiouyang/miniconda3/lib/python3.12/smtplib.py", line 739, in login
    (code, resp) = self.auth(
                   ^^^^^^^^^^

  File "/home/weiouyang/miniconda3/lib/python3.12/smtplib.py", line 662, in auth
    raise SMTPAuthenticationError(code, resp)

smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials 2adb3069b0e04-53d826af04dsm521678e87.273 - gsmtp')
FynnBe commented 2 weeks ago

It seems that the message was stored successfully anyway: image

Just the timestamp is wrong.

Info for whomever will look at fixing this: the next message: image was added by dispatching the request_changes.yaml workflow manually: https://github.com/bioimage-io/collection/actions/runs/11739016314/job/32702674041