matrix-public-archive/server/routes
Eric Eastwood df89750401
Throw more understandable error when we fail to fetch from the homeserver room directory (#84)
Fix https://github.com/matrix-org/matrix-public-archive/issues/80

```
RethrownError: Unable to fetch rooms from room directory (homeserver=http://localhost:8008/)
    searchTerm=, paginationToken=undefined, limit=9
    at matrix-public-archive\server\routes\room-directory-routes.js:55:13
    --- Original Error ---
    Error: HTTP Error Response: 500 Internal Server Error: {"errcode":"M_UNKNOWN","error":"Internal server error"}
        URL=http://localhost:8008/_matrix/client/v3/publicRooms?
        at checkResponseStatus (matrix-public-archive\server\lib\fetch-endpoint.js:21:11)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async fetchEndpoint (matrix-public-archive\server\lib\fetch-endpoint.js:38:3)
        at async fetchEndpointAsJson (matrix-public-archive\server\lib\fetch-endpoint.js:63:15)
        at async fetchPublicRooms (matrix-public-archive\server\lib\matrix-utils\fetch-public-rooms.js:26:26)
        at async matrix-public-archive\server\tracing\trace-utilities.js:31:24
        at async matrix-public-archive\server\routes\room-directory-routes.js:45:62
```
2022-10-18 16:42:33 -05:00
..
install-routes.js Use rainbow Matrix.org gradient (#75) 2022-10-18 01:30:26 -05:00
prevent-clickjacking-middleware.js Add clickjacking prevention middleware (#68) 2022-09-08 19:30:20 -05:00
room-directory-routes.js Throw more understandable error when we fail to fetch from the homeserver room directory (#84) 2022-10-18 16:42:33 -05:00
room-routes.js Show surrounding messages for a full screen of content (#71) 2022-09-20 16:02:09 -05:00
timeout-middleware.js Fix wrong path to Hydrogen styles on timeout error page (#83) 2022-10-18 03:42:37 -05:00