I put this into its own thread since it seems like a different error than the other similar thread here: https://forum.cloudron.io/topic/5071/explore-public-rooms-in-matrix-fails/1
When searching for other public rooms I get this error after about a 10 second timeout period:
It seems like this is probably not a CORS issue. If I try to access that URL without a valid access token I get this response:
~
❯ http get 'https://matrix.markstenglein.com/_matrix/client/r0/publicRooms?server=matrix.org'
HTTP/1.1 401 Unauthorized
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization, Date
Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Cache-Control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Type: application/json
Date: Sat, 28 Aug 2021 16:55:05 GMT
Server: nginx
Transfer-Encoding: chunked
{
"errcode": "M_MISSING_TOKEN",
"error": "Missing access token"
}
If instead I make the same request with my authorization token I get a 502 Bad Gateway
error.
~
❯ http get 'https://matrix.markstenglein.com/_matrix/client/r0/publicRooms?server=matrix.org' 'Authorization: Bearer TOKEN_REMOVED_FROM_THIS_POST'
HTTP/1.1 502 Bad Gateway
Connection: keep-alive
Content-Length: 1859
Content-Type: text/html
Date: Sat, 28 Aug 2021 16:56:48 GMT
ETag: "61142a4e-743"
Server: nginx
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
<title> Cloudron App Error </title>
<!-- Use static style as we can't include local stylesheets -->
<style>
html {
height: 100%;
width: 100%;
padding: 0;
}
body {
background-color: white;
padding: 0;
margin: 0;
height: 100%;
width: 100%;
text-align: center;
font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
line-height: 1.846;
}
.content {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
}
footer {
background-color: #EFEFEF;
bottom: 0;
width: 100%;
color: #555;
font-size: 12px;
text-align: center;
padding: 5px;
z-index: 1000;
position: fixed;
opacity: .5;
transition: all .25s;
}
footer:hover {
opacity: 1;
}
a {
color: #2196f3;
text-decoration: none;
background-color: transparent;
}
a:hover {
color: #0a6ebd;
text-decoration: underline;
}
</style>
</head>
<body>
<div class="content">
<h1>⌛</h1>
<p>This app is currently not responding. Please try refreshing the page in a few minutes.</p>
</div>
<footer>
<span class="text-muted"><a href="https://cloudron.io" target="_blank">Cloudron</a></span>
</footer>
</body>
</html>
Seems like this is either the underlying matrix server taking too long to perform federation or some other problem. Looking in the application logs all I see are these entries:
Aug 28 12:27:10 ==> Fixing permissions
Aug 28 12:27:10 ==> Starting synapse
I don't see any other logs to try and diagnose what the issue could be.
Any ideas?