-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mailer - endpoint invocation stays blocked when having mailer misconfigured #27919
Comments
/cc @cescoffier |
/cc @cescoffier |
Probably a good idea to get a stacktrace of the stuck thread. |
Full thread dump by jstack command - jstack.txt |
So... there is a bug and a workaround. The workaround consists of not using auth chain, and just adding:
|
Issue opened: vert-x3/vertx-mail-client#186 |
Fixed proposed: vert-x3/vertx-mail-client#187. |
Closed by #28323 |
Describe the bug
mailer - endpoint invocation stays blocked when having mailer misconfigured
when I used config based on https://quarkus.io/guides/mailer#configuring-the-mailer and invoked
curl localhost:8080/mail/
I got warning and error in logBut curl command didn't finish, still waiting for response.
And I had to interrupt it using
Ctrl+C
Endpoint invocation shouldn't be blocked, looks like Quarkus or vertx-mail-client issue.
https://quarkus.io/guides/mailer#configuring-the-mailer based config
When using miss-configured gmail setting I received
{"details":"Error id ea7bfd08-69cf-4772-9b3b-f640a2de938f-1, java.util.concurrent.CompletionException: io.vertx.ext.mail.SMTPException: AUTH PLAIN failed: 535-5.7.8 Username and Password not accepted. Learn more at","stack":"java.util.concurrent.CompletionException: io.vertx.ext.mail.SMTPException: AUTH PLAIN failed: 535-5.7.8 Username and Password not accepted. Learn more at\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials h20-200 ....
So maybe sendgrid doesn't provide any text response like gmail and thus quarkus app still keeps the connection open / curl command doesn't finish. but logs are indicating that authentication wasn't successful and thus the connection for curl should be closed with appropriate response code / response text.
Expected behavior
endpoint invocation doesn't stay blocked
Actual behavior
endpoint invocation stays blocked
How to Reproduce?
mvn clean quarkus:dev
curl localhost:8080/mail
Output of
uname -a
orver
macOS Monterey
Output of
java -version
Java 17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
Quarkus main
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: