Skip to content
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

❗ Unable to fetch rooms from room directory exception: Invalid server name: action:add-new-server #244

Open
bkil opened this issue May 30, 2023 · 0 comments
Labels
A-room-directory Room directory landing page where you can explore the list of rooms T-Defect Something isn't working. Bugs, crashes, or other reported issues.

Comments

@bkil
Copy link

bkil commented May 30, 2023

This error occurred after I selected the add new server from the dropbar without JavaScript enabled ( #243 ). But also, if the user typed in an inaccessible HS, they should be greeted with a friendlier message in general.

The exact error we ran into was:

Error: HTTP Error Response: 400 Bad Request: {"errcode":"M_INVALID_PARAM","error":"Invalid server name: action:add-new-server"}
    URL=https://matrix.org/_matrix/client/v3/publicRooms?server=action%3Aadd-new-server
    at checkResponseStatus (/app/server/lib/fetch-endpoint.js:21:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetchEndpoint (/app/server/lib/fetch-endpoint.js:44:3)
    at async fetchEndpointAsJson (/app/server/lib/fetch-endpoint.js:69:15)
    at async fetchPublicRooms (/app/server/lib/matrix-utils/fetch-public-rooms.js:29:36)
    at async /app/server/tracing/trace-utilities.js:31:24
    at async /app/server/routes/room-directory-routes.js:52:62

The error occured [sic] with these search parameters:

{
  "homeserver": "action:add-new-server",
  "searchTerm": "archive",
  "limit": 9
}
@MadLittleMods MadLittleMods added T-Enhancement New feature or request A-room-directory Room directory landing page where you can explore the list of rooms labels May 30, 2023
@MadLittleMods MadLittleMods changed the title ❗ Unable to fetch rooms from room directory exception: action:add-new-server ❗ Unable to fetch rooms from room directory exception: Invalid server name: action:add-new-server May 30, 2023
@MadLittleMods MadLittleMods added T-Defect Something isn't working. Bugs, crashes, or other reported issues. and removed T-Enhancement New feature or request labels Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-room-directory Room directory landing page where you can explore the list of rooms T-Defect Something isn't working. Bugs, crashes, or other reported issues.
Projects
None yet
Development

No branches or pull requests

2 participants