
Also now I think this is related to my other support-question: https://discord.com/channels/564160730845151244/1168836797451747338

what request types do you have filtered to?

i do not have an active filter

top right-ish, it looks like only HTML, CSS, something, something, and Web Scokets are enabled

would you please enable XHR?

sure

I also got now this notification at the top right corner of appwrite console

proxy....sounds like you have a proxy set up in front of appwrite. that could be the problem behind your realtime

check out the response in that PATCH smtp request

yeah I have a proxy error:
Status 502 Proxy Error VersionHTTP/1.1 Übertragen716 B (433 B Größe) Referrer Policystrict-origin-when-cross-origin Anfrage-PrioritätHighest DNS-AuflösungSystem

for the SMTP request?

message "The requested route was not found. Please refer to the API docs and try again."
code 404
type "general_route_not_found"
version "1.4.8"
file "/usr/src/code/app/controllers/general.php"
line 854
trace
0
file "/usr/src/code/vendor/utopia-php/framework/src/App.php"
line 508
function "{closure}"
args []
1
file "/usr/src/code/vendor/utopia-php/framework/src/App.php"
line 673
function "execute"
class "UtopiaApp"
type "->"
args
0 {}
1 {}
2 {}
2
file "/usr/src/code/app/http.php"
line 253
function "run"
class "UtopiaApp"
type "->"
args
0 {}
1 {}

FYI, it's best to wrap code in 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.

message "The requested route was not found. Please refer to the API docs and try again."
code 404
type "general_route_not_found"
version "1.4.8"
file "/usr/src/code/app/controllers/general.php"
line 854
trace
0
file "/usr/src/code/vendor/utopia-php/framework/src/App.php"
line 508
function "{closure}"
args []
1
file "/usr/src/code/vendor/utopia-php/framework/src/App.php"
line 673
function "execute"
class "Utopia\\App"
type "->"
args
0 {}
1 {}
2 {}
2
file "/usr/src/code/app/http.php"
line 253
function "run"
class "Utopia\\App"
type "->"
args
0 {}
1 {}
ok so what does that mean?

this was in the smtp request

weird...i tested and it executed fine:

maybe this problem is due to your reverse proxy too 🤷🏼♂️

you mean the traefik wright?

I now found a solution and fixed it 🙂

The fault was in the apache config of the server.

This was my api.conf file before changes:
<Macro APICertsPaths>
SSLCertificateFile /etc/ssl/api-example.example/cert.pem
SSLCertificateKeyFile /etc/ssl/api-example.example/key.pem
SSLCertificateChainFile /etc/ssl/api-example.example/fullchain.pem
SSLCACertificatePath /etc/ssl/api-example.example
SSLCACertificateFile /etc/ssl/api-example.example/fullchain.pem
</Macro>
<VirtualHost *:80>
ServerName api-example.example
ServerAdmin webmaster@example.example
Alias /robots.txt /var/www/html/robots.txt
#für lets encrypt
Alias /.well-known/acme-challenge/ /var/www/acme/.well-known/acme-challenge/
<Directory "/var/www/acme/.well-known/acme-challenge">
AllowOverride None
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge [NC]
RewriteCond %{REQUEST_URI} !^/robots.txt [NC]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName api-example.example
SSLEngine On
Use APICertsPaths
ProxyAddHeaders On
#Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
#Header set X-Frame-Options: "SAMEORIGIN"
RequestHeader set X-FORWARDED-PROTOCOL https
RequestHeader set X-Forwarded-Ssl on
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond ${HTTP:Upgrade} websocket [NC]
RewriteCond ${HTTP:Connection} upgrade [NC]
RewriteRule .* "wss:/localhost:1080/$1" [P,L]
ProxyPreserveHost On
ProxyPass / http://localhost:1080/
ProxyPassReverse / http://localhost:1080/
</VirtualHost>

and this is the fixed api.conf file:
<Macro APICertsPaths>
SSLCertificateFile /etc/ssl/api-example.example/cert.pem
SSLCertificateKeyFile /etc/ssl/api-example.example/key.pem
SSLCertificateChainFile /etc/ssl/api-example.example/fullchain.pem
SSLCACertificatePath /etc/ssl/api-example.example
SSLCACertificateFile /etc/ssl/api-example.example/fullchain.pem
</Macro>
<VirtualHost *:80>
ServerName api-example.example
ServerAdmin webmaster@example.example
Alias /robots.txt /var/www/html/robots.txt
#für lets encrypt
Alias /.well-known/acme-challenge/ /var/www/acme/.well-known/acme-challenge/
<Directory "/var/www/acme/.well-known/acme-challenge">
AllowOverride None
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge [NC]
RewriteCond %{REQUEST_URI} !^/robots.txt [NC]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName api-example.example
SSLEngine On
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
Use APICertsPaths
ProxyAddHeaders On
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPassReverseCookieDomain "localhost:10443" "api-example.example"
ProxyPreserveHost On
ProxyPass / https://localhost:10443/ upgrade=websocket
ProxyPassReverse / https://localhost:10443/
</VirtualHost>

at the bottom of the files are the relevant changes, also for everybody struggling here at this point:
this link helped me a lot: https://github.com/appwrite/appwrite/discussions/4056

I have to say in my case there was not just this fault, also another service was running on same port and sometimes the API request got to this different service - just FYI.
Best regards

[SOLVED] Custom SMTP Server in Console
Recommended threads
- Storage getFilePreview for GIF file retu...
Used to work in 1.6.x but with 1.7.4 upgrade it seems to be broken.
- Admin panel
- Settings page on storage in a bucket goe...
When navigating to a settings page in a bucket i recieve a 404 with the following error: ``` 2025-06-06T12:02:46.582655899Z [Error] File: /usr/src/code/app/cont...
