Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Room directory returns an error #5180

Closed
agherzan opened this issue May 13, 2019 · 2 comments
Closed

Room directory returns an error #5180

agherzan opened this issue May 13, 2019 · 2 comments

Comments

@agherzan
Copy link

Description

I installed a home server on which the Room directory when using riot-web returns the following error:

Riot failed to get the public room list. CORS request rejected: https://<DOMAIN>/_matrix/client/r0/publicRooms?server=matrix.org

The POST request returns 405 and the console logs:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://<DOMAIN>/_matrix/client/r0/sync?filter=0&timeout=30000&since=s9_83_0_1_1_1_1_6_1. (Reason: CORS request did not succeed).[Learn More]

Also:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://<DOMAIN>/_matrix/client/r0/publicRooms?server=matrix.org. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]

Steps to reproduce

  • install riot and synapse
  • use riot to navigate "Room directory"

Version information

  • Version: 0.99.3.2

  • Install method: docker containers for both riot and synapse

  • Platform: Synology NAS system.

@agherzan
Copy link
Author

agherzan commented May 13, 2019

It seems like it's related to the fact that federate (and client) are behind cloudflare. Are there any known issues in that regards?

@richvdh
Copy link
Member

richvdh commented May 14, 2019

CORS request rejected

this normally means that you had a reverse-proxy (or, in this case, Cloudflare), which timed out the request and returned an error without the CORS headers, which normally means that your server is overloaded and failing to respond. The solution is to find out why your server is overloaded and fix it. You might get some help in #synapse:matrix.org.

@richvdh richvdh closed this as completed May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants