-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: Error setting up email server: AxiosError: Request failed with status code 400 #50845
Comments
I'm getting the same error on a freshly installed 30.0.6 (with MariaDB 10.11, so maybe that's not related). Unfortunately
logs nothing mail related and no |
Same error here, and nothing found in log I tried on different smtp accounts, same error edit: only the test mail is not working. other mail are correctly delivered |
As a workaround, set
in the oc_appsettings table of your Nextcloud database. |
I'm having the same error with a fresh installation via docker and PostgreSQL. All mail, except the test mail, works as expected.
|
Same error with a fresh install (30.0.6) on a VM on debian, using Sendmail or SMTP configurations (emails are correctly sent when creating an account tough, only the test fails). The debug mode didn't give any useful information. I only see the 400 in apache logs. Changing the |
Yes, it will reset to 0 if you test again and it fails - but setting it to 1 removes the annoying message that you haven't configured e-mail. |
I noticed that in this config port 25 is specified and not totally sure 163.com fully supports that anymore? Outgoing Server - SMTP General SMTP port settings for 163.COM |
I have solved my question. If the problem occurs, you can try the following methods to solve it:
Note that it is necessary to add the configuration of 'mail_stmtptimeout'=>30.
|
Good to hear. I tend to agree with you regarding the bug comment. Maybe some changes to the process of applying smtp configuration and the smtp test feature from the admin panel. On a freshly created NC setup I replicated this and was forced to manually update the config (even with write permissions). |
Thank you for this answer. After adding an E-Mail address to the profile it just works... |
Bug description
I received an Axios error while setting up my email server, and no matter which email server I change, it always reports an error: AxiosError: Request failed with status code 400。
Regarding this error, I found a similar question to mine on the official forum of NextCloud, but the problem was solved by manually modifying the parameters of the smtp server in the configuration file. I tried the same method, but still received the error message "AxiosError: Request failed with status code 400".
It is worth mentioning that according to the documentation, I enabled debugging of email logs and adjusted the NextCloud log level to 0. When the request fails, I cannot receive any debug logs about emails.
Steps to reproduce
Expected behavior
Can correctly set up the SMTP server
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
此错误无日志
Additional info
No response
The text was updated successfully, but these errors were encountered: